aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-28 14:41:20 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-28 14:41:20 +0000
commitde0002bbdfc5110993977de13be9b90ee6dcc626 (patch)
treeee80080c3c7295f97b8761b700aa258361b0b210
parent9c561b384a3856a4ad35ea6de6fa2d7381139368 (diff)
Fix small display bug. we returned the wrong value from dissect_per_choice and it made us display the wrong string sometimes
svn path=/trunk/; revision=8299
-rw-r--r--packet-per.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-per.c b/packet-per.c
index 20a96b404b..d7dda0cd7a 100644
--- a/packet-per.c
+++ b/packet-per.c
@@ -7,7 +7,7 @@ proper helper routines
* Routines for dissection of ASN.1 Aligned PER
* 2003 Ronnie Sahlberg
*
- * $Id: packet-per.c,v 1.13 2003/08/26 21:30:08 sahlberg Exp $
+ * $Id: packet-per.c,v 1.14 2003/08/28 14:41:20 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -999,9 +999,10 @@ DEBUG_ENTRY("dissect_per_choice");
choice_index--;
}
}
+
if(index!=-1){
if(value){
- *value=choice_index;
+ *value=index;
}
}