commit | 7609064fc3b99ac56bf923384f8afcd88368351b | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Tue Dec 10 15:03:38 2013 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Dec 12 15:44:05 2013 +0100 |
tree | d2e3f972747538b1e7bfd31cc0ec74dbbd6eb399 | |
parent | 0b2fe4a5cd8f694ce1d79682e96bfc861b0fcfbf [diff] [blame] |
MINOR: pattern: make the pattern matching function return a pointer to the matched element This feature will be used by the CLI to look up keys.
diff --git a/src/map.c b/src/map.c index a13c5b7..b1fa7f6 100644 --- a/src/map.c +++ b/src/map.c
@@ -467,7 +467,7 @@ desc = arg_p[0].data.map; /* Execute the match function. */ - ret = pattern_exec_match(desc->pat, smp, &sample); + ret = pattern_exec_match(desc->pat, smp, &sample, NULL, NULL); if (ret != PAT_MATCH) { if (!desc->def) return 0;