aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ldap.c')
-rw-r--r--epan/dissectors/packet-ldap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index 1201dfaeeb..0ed70a1ad7 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -414,8 +414,12 @@ dissect_ldap_AssertionValue(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset
guint32 len, i;
const guchar *str;
- offset=get_ber_identifier(tvb, offset, &class, &pc, &tag);
- offset=get_ber_length(NULL, tvb, offset, &len, &ind);
+ if(!implicit_tag){
+ offset=get_ber_identifier(tvb, offset, &class, &pc, &tag);
+ offset=get_ber_length(NULL, tvb, offset, &len, &ind);
+ } else {
+ len=tvb_length_remaining(tvb,offset);
+ }
if(len==0){
return offset;