From 5f738b5660fc5abf6e21b527bb6f946bbaaa31db Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Tue, 23 May 2006 08:46:18 +0000 Subject: If an optional key is not found, then leave source set to NULL. (Philip Craig) --- src/ulogd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ulogd.c b/src/ulogd.c index 4097983..0742925 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -560,8 +560,9 @@ create_stack_resolve_keys(struct ulogd_pluginstance_stack *stack) okey = find_okey_in_stack(ikey->name, stack, pi_cur); - if (!okey && - !(ikey->flags & ULOGD_KEYF_OPTIONAL)) { + if (!okey) { + if (ikey->flags & ULOGD_KEYF_OPTIONAL) + continue; ulogd_log(ULOGD_ERROR, "cannot find " "key `%s' in stack\n", ikey->name); -- cgit v1.2.3