X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Ffilter.c;h=6d98d261d11c8912a5b25708a20e0f4f3a2ea500;hb=43cbaab1fc66139d3dfd87a2f8b6be5d906ee317;hp=d145f42f8ef66d8c7ea40c6a98e0f814ea14bbb1;hpb=c091e1809626636627a2824d6a2dfedeab3a4d24;p=apps%2Fpfixtools.git diff --git a/postlicyd/filter.c b/postlicyd/filter.c index d145f42..6d98d26 100644 --- a/postlicyd/filter.c +++ b/postlicyd/filter.c @@ -287,14 +287,15 @@ bool filter_add_hook(filter_t *filter, const char *name, int name_len, htokens[hook.type], ftokens[filter->type]); return false; } - hook.async = false; + hook.async = false; + hook.filter_id = -1; + hook.value = NULL; hook.postfix = (strncmp(value, "postfix:", 8) == 0); if (hook.postfix && query_format(NULL, 0, value + 8, NULL) == -1) { err("invalid formatted text \"%s\"", value + 8); return false; } hook.value = m_strdup(hook.postfix ? value + 8 : value); - hook.filter_id = -1; array_add(filter->hooks, hook); return true; }