summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-04-26 16:55:48 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-04-26 16:55:48 +0000
commit32e6d749cf9974379dff8196387f462f15307adb (patch)
tree411cc4ca8778d68c3c9a3213c2974ea0cbac92cf /sbin
parente70628f3940c21742a91c8fe642dbed322113741 (diff)
Only print valid rdomains. '-1' is used as default value and should
not be printed.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/iked/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index 5c7a22d0746..2fdadbfdce7 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.94 2020/04/23 20:17:48 tobhe Exp $ */
+/* $OpenBSD: parse.y,v 1.95 2020/04/26 16:55:47 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -2510,7 +2510,7 @@ print_policy(struct iked_policy *pol)
print_verbose(" inet6");
}
- if (pol->pol_rdomain)
+ if (pol->pol_rdomain >= 0)
print_verbose(" rdomain %d", pol->pol_rdomain);
RB_FOREACH(flow, iked_flows, &pol->pol_flows) {