summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ulogd.c5
1 files 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);