diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-07-01 00:11:14 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-07-01 00:11:14 +0000 |
commit | 6aaa5874c610def77b749831f785be309acaf853 (patch) | |
tree | e169d7c09c69c275f326dee7a613cb0cd40f64cb /epan/dissectors/packet-ldap.c | |
parent | caff9b5513346a4e1eb8987910e2af9fb5f4a8c0 (diff) |
Initialize more variables.
svn path=/trunk/; revision=33392
Diffstat (limited to 'epan/dissectors/packet-ldap.c')
-rw-r--r-- | epan/dissectors/packet-ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c index 676ffef919..290877239d 100644 --- a/epan/dissectors/packet-ldap.c +++ b/epan/dissectors/packet-ldap.c @@ -2156,7 +2156,7 @@ static int dissect_ldap_AttributeValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { #line 460 "ldap.cnf" - tvbuff_t *next_tvb; + tvbuff_t *next_tvb = NULL; gchar *string; guint32 i, len; int old_offset = offset; @@ -2167,7 +2167,7 @@ dissect_ldap_AttributeValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of 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 */ |