From b4638588df7d0b51f9c81d8995e18e48ef5adad1 Mon Sep 17 00:00:00 2001 From: sahlberg Date: Thu, 22 Jun 2006 10:29:49 +0000 Subject: the dissector for AssertionValue that is implemented in the template file did not check the implicit_tag flag and caused extensiblematch filters to show up as malformed packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18540 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ldap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-ldap.c') 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; -- cgit v1.2.3