fix for bug #856
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2006 07:53:39 +0000 (07:53 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2006 07:53:39 +0000 (07:53 +0000)
dont try to lookup a NULL string since this string will be dereferenced
in the ghashtable   hash callback

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17802 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gssapi.c

index 3e20204f613138cecb8a67480234936692bf0959..b5796001df37858e379d1d6e63fe01a7aa9ecdb8 100644 (file)
@@ -104,6 +104,9 @@ gssapi_oid_value *
 gssapi_lookup_oid_str(const char *oid_key)
 {
        gssapi_oid_value *value;
+       if(!oid_key){
+               return NULL;
+       }
        value = g_hash_table_lookup(gssapi_oids, oid_key);
        return value;
 }