The CLDAP attribute value on a CLDAP reply is no longer being decoded

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5239

It got broken in Revision 33390 I think, if attr_type is unset at this point it should be set in the calling function.
http://anonsvn.wireshark.org/viewvc/trunk/asn1/ldap/ldap.cnf?r1=33388&r2=33390

svn path=/trunk/; revision=34176
This commit is contained in:
Anders Broman 2010-09-21 14:56:55 +00:00
parent ca5fd0c797
commit 6dc449e99c
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ ldap_conv_info_t *ldap_info;
guint32 i, len;
int old_offset = offset;
attr_type=NULL;
/* attr_type, should be set before calling this function */
/* extract the value of the octetstring */
offset = dissect_ber_octet_string(FALSE, actx, NULL, tvb, offset, hf_index, &next_tvb);

View File

@ -2161,7 +2161,7 @@ dissect_ldap_AttributeValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
guint32 i, len;
int old_offset = offset;
attr_type=NULL;
/* attr_type, should be set before calling this function */
/* extract the value of the octetstring */
offset = dissect_ber_octet_string(FALSE, actx, NULL, tvb, offset, hf_index, &next_tvb);