summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhartmei <dhartmei@openbsd.org>2002-11-23 08:59:54 +0000
committerdhartmei <dhartmei@openbsd.org>2002-11-23 08:59:54 +0000
commit11e2fa2849d4ef28a3c9b27e4ab8d6e1d17618a8 (patch)
tree920f09e2ddf08ef6c95884bc41209c95c0eb6024
parentcheck to make sure a list item exists before checking to see if the next (diff)
downloadwireguard-openbsd-11e2fa2849d4ef28a3c9b27e4ab8d6e1d17618a8.tar.xz
wireguard-openbsd-11e2fa2849d4ef28a3c9b27e4ab8d6e1d17618a8.zip
Missing {}
-rw-r--r--sbin/pfctl/pfctl_parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 288fe535685..ac6a696f31f 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.108 2002/11/23 08:12:56 mcbride Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.109 2002/11/23 08:59:54 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -411,9 +411,10 @@ print_pool(struct pf_pool *pool, sa_family_t af, int id)
break;
case PF_POOL_RULE_RT:
printf("( %s", pooladdr->ifname);
- if (! PF_AZERO(&pooladdr->addr.addr, af))
+ if (! PF_AZERO(&pooladdr->addr.addr, af)) {
printf(" ");
print_addr(&pooladdr->addr, af);
+ }
printf(" )");
break;
}