From 96c41e12935b8756a7ffc38bc2ef375ff86080ac Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Thu, 24 Feb 2005 04:11:31 +0000 Subject: - fix a crash in new_avpl_strict_match when the operator avpl was empty - change the name of the preference mate.config_filename: into mate.config: svn path=/trunk/; revision=13488 --- plugins/mate/mate_util.c | 3 +++ plugins/mate/packet-mate.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/mate') diff --git a/plugins/mate/mate_util.c b/plugins/mate/mate_util.c index 37768d778f..6001732535 100644 --- a/plugins/mate/mate_util.c +++ b/plugins/mate/mate_util.c @@ -1217,6 +1217,9 @@ extern AVPL* new_avpl_exact_match(guint8* name,AVPL* src, AVPL* op, gboolean cop dbg_print(dbg_avpl_op,3,dbg_fp,"new_avpl_every_match: %X src=%X op=%X name='%s'",newavpl,src,op,name); #endif + if (op->len == 0) + return newavpl; + cs = src->null.next; co = op->null.next; while(1) { diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c index 15afb06012..d13524b117 100644 --- a/plugins/mate/packet-mate.c +++ b/plugins/mate/packet-mate.c @@ -336,7 +336,7 @@ proto_register_mate(void) proto_mate = proto_register_protocol("Meta Analysis Tracing Engine", "MATE", "mate"); register_dissector("mate",mate_tree,proto_mate); mate_module = prefs_register_protocol(proto_mate, proto_reg_handoff_mate); - prefs_register_string_preference(mate_module, "config_filename", + prefs_register_string_preference(mate_module, "config", "Configuration Filename", "The name of the file containing the mate module's configuration", &pref_mate_config_filename); -- cgit v1.2.3