aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-11-30 15:00:34 +0000
committerJoão Valverde <j@v6e.pt>2022-11-30 15:00:34 +0000
commit93814ef7407611b55acc6f077539293ad0a44013 (patch)
tree29a386673bbace6fa54ac1796af9da599dfd9d89
parent8a67ca77e66b707f3aae3b86466075f5dfde618a (diff)
dfilter: Always set error pointer in case of failure
-rw-r--r--epan/dfilter/dfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dfilter/dfilter.c b/epan/dfilter/dfilter.c
index 1e3d66570a..9feac8e3dc 100644
--- a/epan/dfilter/dfilter.c
+++ b/epan/dfilter/dfilter.c
@@ -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);