aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-01-17 22:25:36 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-01-17 22:25:36 +0000
commitf6fe109fc779107304a47eb0fce3f91d97f82080 (patch)
treef7cb0a9a912a5bc6dca03e5b4eaf1c14a5bd9abe /epan/dissectors
parent71e8b5bf1f2f7c72b3bdd86fe1f4132bdef47195 (diff)
If a string of zero length is encountered offset still needs to be advanced(?)
svn path=/trunk/; revision=13097
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-per.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c
index 36f1658c67..0059b30f3c 100644
--- a/epan/dissectors/packet-per.c
+++ b/epan/dissectors/packet-per.c
@@ -356,8 +356,9 @@ DEBUG_ENTRY("dissect_per_restricted_character_string");
if(!length){
/* there is no string at all, so dont do any byte alignment */
- byte_aligned=FALSE;
- }
+ /* byte_aligned=FALSE; */
+ /* Advance offset to next 'element' */
+ offset = offset + 1; }
if(byte_aligned){
BYTE_ALIGN_OFFSET(offset);