diff options
author | Michael Mann <mmann78@netscape.net> | 2015-10-02 23:42:38 -0400 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2015-10-05 18:48:16 +0000 |
commit | c913a61c742ccf98248afb5ba921464a9ee8f50a (patch) | |
tree | 389ac388169c72662132bad7deb30b67db6952aa | |
parent | 3f56b5e6b91ec2d57c8ce48606332368c17665dd (diff) |
MATE: Add ~ operator support
Bug: 9025
Change-Id: Ica92a7026ba8a89a8970b76e4e7d27f9e6288eb6
Reviewed-on: https://code.wireshark.org/review/10760
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
-rw-r--r-- | plugins/mate/mate_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mate/mate_util.c b/plugins/mate/mate_util.c index bf3f62307d..169eaae727 100644 --- a/plugins/mate/mate_util.c +++ b/plugins/mate/mate_util.c @@ -966,8 +966,7 @@ extern AVP* match_avp(AVP* src, AVP* op) { /* case AVP_OP_TRANSF: */ /* return do_transform(src,op); */ case AVP_OP_CONTAINS: - /* TODO */ - return NULL; + return g_strrstr(src->v, op->v) ? src : NULL;; } /* will never get here */ return NULL; |