forked from osmocom/wireshark
CID 1215245, 1215247: NULL check for the param of proto_get_id()
Change-Id: Ie1bcbffdc0040bf25e32c763185befb0231f4173 Reviewed-on: https://code.wireshark.org/review/15320 Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
6febe27586
commit
9a8a454b0a
|
@ -2371,8 +2371,8 @@ dissector_try_heuristic(heur_dissector_list_t sub_dissectors, tvbuff_t *tvb,
|
|||
continue;
|
||||
}
|
||||
|
||||
proto_id = proto_get_id(hdtbl_entry->protocol);
|
||||
if (hdtbl_entry->protocol != NULL) {
|
||||
proto_id = proto_get_id(hdtbl_entry->protocol);
|
||||
/* do NOT change this behavior - wslua uses the protocol short name set here in order
|
||||
to determine which Lua-based heurisitc dissector to call */
|
||||
pinfo->current_proto =
|
||||
|
|
Loading…
Reference in New Issue