forked from osmocom/wireshark
dfilter: Always set error pointer in case of failure
This commit is contained in:
parent
8a67ca77e6
commit
93814ef740
|
@ -548,6 +548,7 @@ FAILURE:
|
|||
if (dfw->error.msg == NULL) {
|
||||
/* We require an error message. */
|
||||
ws_critical("Unknown error compiling filter: %s", text);
|
||||
dfw_error_set_msg(errpp, "Unknown error compiling filter: %s", text);
|
||||
}
|
||||
else {
|
||||
ws_debug("Compiling filter failed with error: %s.", dfw->error.msg);
|
||||
|
|
Loading…
Reference in New Issue