summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-25 11:02:27 -0700
committerGuy Harris <guy@alum.mit.edu>2016-09-25 18:03:04 +0000
commit79ae8c1d07fe777a175269ed49d2adee9c1d575b (patch)
tree83f722a6e51e369ca5c5a33a8e6dd7b70da65a28
parentf3fede009945dbe06ae5d1419f78876b3bef75cd (diff)
downloadwireshark-79ae8c1d07fe777a175269ed49d2adee9c1d575b.tar.gz
Report failure to compile a filter as an error.
The NCP dissector relies on those filters being compiled, and we end up doing a g_assert() anyway; use g_error() to make sure the error gets printed. Change-Id: Ibc20407c1c08f0baaa626f269e9552ae11b36083 Ping-Bug: 12945 Reviewed-on: https://code.wireshark.org/review/17921 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/dissectors/packet-ncp2222.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ncp2222.inc b/epan/dissectors/packet-ncp2222.inc
index 1ca369963e..63b1754ba4 100644
--- a/epan/dissectors/packet-ncp2222.inc
+++ b/epan/dissectors/packet-ncp2222.inc
@@ -7016,7 +7016,7 @@ ncp2222_compile_dfilters(void)
for (i = 0; i < NUM_REQ_CONDS; i++) {
if (!dfilter_compile((const gchar*)req_conds[i].dfilter_text,
&req_conds[i].dfilter, &err_msg)) {
- g_message("NCP dissector failed to compile dfilter \"%s\": %s\n",
+ g_error("NCP dissector failed to compile dfilter \"%s\": %s\n",
req_conds[i].dfilter_text, err_msg);
g_free(err_msg);
g_assert_not_reached();