X-Git-Url: http://git.madism.org/?p=apps%2Fpfixtools.git;a=blobdiff_plain;f=postlicyd%2Ffilter.c;fp=postlicyd%2Ffilter.c;h=ab608d8223ae27d249c3f4da96922918eeaf05c9;hp=e108b25c08ba46a4f949c0a2e7a0510da4d5a99c;hb=5c6356faa58d3109101e88ecfce207326d89ceab;hpb=8950d42993b7148718f712b8d7e77aaa21ef14ce diff --git a/postlicyd/filter.c b/postlicyd/filter.c index e108b25..ab608d8 100644 --- a/postlicyd/filter.c +++ b/postlicyd/filter.c @@ -324,7 +324,7 @@ bool filter_add_hook(filter_t *filter, const char *name, int name_len, hook.cost = 0; } hook.postfix = (strncmp(value, "postfix:", 8) == 0); - if (hook.postfix && query_format(NULL, 0, value + 8, NULL) == -1) { + if (hook.postfix && !query_format_check(value + 8)) { err("invalid formatted text \"%s\"", value + 8); return false; }