forked from osmocom/wireshark
Enhance error printout if register_dissector_table() is called with wrong
type. Change-Id: I7af0d89441b9ab87e9ed8dd0d52ca7f6ad82b896 Reviewed-on: https://code.wireshark.org/review/15458 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
dcd833e348
commit
2a08bd75b6
|
@ -2119,6 +2119,7 @@ register_dissector_table(const char *name, const char *ui_name, const int proto,
|
|||
&g_free );
|
||||
break;
|
||||
default:
|
||||
g_error("The dissector table %s (%s) is registering an unsupported type - are you using a buggy plugin?", name, ui_name);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
sub_dissectors->dissector_handles = NULL;
|
||||
|
|
Loading…
Reference in New Issue