X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Ffilter.c;h=ab608d8223ae27d249c3f4da96922918eeaf05c9;hb=39e8c944acc71c4e3deaa48d55c09279fd80d81f;hp=e108b25c08ba46a4f949c0a2e7a0510da4d5a99c;hpb=785558696ffa16453be0b5b565c46b6426126d1e;p=apps%2Fpfixtools.git 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; }