This fixes a regression in commit
e0e574d16748313dd8903f886d1af9eb0821fee7.
Change-Id: I447001a84e17a76ec77c48f736bbfcd8cc6324a1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-on: https://code.wireshark.org/review/11574
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
const char *
dcerpc_get_proto_name(e_guid_t *uuid, guint16 ver)
{
const char *
dcerpc_get_proto_name(e_guid_t *uuid, guint16 ver)
{
+ dissector_handle_t handle;
guid_key key;
key.guid = *uuid;
key.ver = ver;
guid_key key;
key.guid = *uuid;
key.ver = ver;
- return dissector_handle_get_short_name(dissector_get_guid_handle(uuid_dissector_table, &key));
+ handle = dissector_get_guid_handle(uuid_dissector_table, &key);
+ if (handle == NULL) {
+ return NULL;
+ }
+
+ return dissector_handle_get_short_name(handle);
}
/* Function to find the opnum hf-field of a registered protocol
}
/* Function to find the opnum hf-field of a registered protocol