diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2014-10-15 11:58:40 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2014-10-15 10:53:59 +0000 |
commit | a25ae55c92639afc475e0e3576b2732e5bfaf596 (patch) | |
tree | 754c8f38d4d55415e64a02be7bb84a546d8ff478 /epan/dissectors/packet-ldap.c | |
parent | bf5b872281432adda2478e51cefdb75d23e74d40 (diff) |
LDAP: Improved a if-check to avoid a analyzis warning.
Change-Id: Iceeaa94a80543570a720281ac39d3ccd9ac924fa
Reviewed-on: https://code.wireshark.org/review/4699
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/dissectors/packet-ldap.c')
-rw-r--r-- | epan/dissectors/packet-ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c index 4d38bf3f1b..7d28a2b30d 100644 --- a/epan/dissectors/packet-ldap.c +++ b/epan/dissectors/packet-ldap.c @@ -706,7 +706,7 @@ attribute_types_initialize_cb(void) guint i; gchar* attribute_type; - if (attribute_types_hash) { + if (attribute_types_hash && hf) { guint hf_size = g_hash_table_size (attribute_types_hash); /* Unregister all fields */ for (i = 0; i < hf_size; i++) { |