diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-01 00:11:14 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-01 00:11:14 +0000 |
commit | 67fd8ad0b3ade1dc08271a4635ab9225ee79d9d2 (patch) | |
tree | e169d7c09c69c275f326dee7a613cb0cd40f64cb /asn1/ldap | |
parent | ef4fd6db0ae62501e05713a5ac0d7eed3743640a (diff) |
Initialize more variables.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33392 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/ldap')
-rw-r--r-- | asn1/ldap/ldap.cnf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf index 38ee6d81a6..8d5cc93111 100644 --- a/asn1/ldap/ldap.cnf +++ b/asn1/ldap/ldap.cnf @@ -458,7 +458,7 @@ ldap_conv_info_t *ldap_info; #.FN_BODY AttributeValue - tvbuff_t *next_tvb; + tvbuff_t *next_tvb = NULL; gchar *string; guint32 i, len; int old_offset = offset; @@ -469,7 +469,7 @@ ldap_conv_info_t *ldap_info; offset = dissect_ber_octet_string(FALSE, actx, NULL, tvb, offset, hf_index, &next_tvb); /* if we have an attribute type that isn't binary see if there is a better dissector */ - if(!attr_type || !dissector_try_string(ldap_name_dissector_table, attr_type, next_tvb, actx->pinfo, tree)) { + if(!attr_type || !next_tvb || !dissector_try_string(ldap_name_dissector_table, attr_type, next_tvb, actx->pinfo, tree)) { offset = old_offset; /* do the default thing */ |