aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp2222.inc
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ncp2222.inc')
-rw-r--r--epan/dissectors/packet-ncp2222.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ncp2222.inc b/epan/dissectors/packet-ncp2222.inc
index 9ff102d081..e12e0e4ddd 100644
--- a/epan/dissectors/packet-ncp2222.inc
+++ b/epan/dissectors/packet-ncp2222.inc
@@ -7405,12 +7405,14 @@ static void
ncp2222_compile_dfilters(void)
{
int i;
+ gchar *err_msg;
for (i = 0; i < NUM_REQ_CONDS; i++) {
if (!dfilter_compile((const gchar*)req_conds[i].dfilter_text,
- &req_conds[i].dfilter)) {
- g_message("NCP dissector failed to compile dfilter: %s\n",
- req_conds[i].dfilter_text);
+ &req_conds[i].dfilter, &err_msg)) {
+ g_message("NCP dissector failed to compile dfilter \"%s\": %s\n",
+ req_conds[i].dfilter_text, err_msg);
+ g_free(err_msg);
g_assert_not_reached();
}
}