dfilter: Always set error pointer in case of failure

This commit is contained in:
João Valverde 2022-11-30 15:00:34 +00:00
parent 8a67ca77e6
commit 93814ef740
1 changed files with 1 additions and 0 deletions

View File

@ -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);