summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pf_print_state.c
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-03-24 17:06:40 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-03-24 17:06:40 +0000
commitf6e77df38b3b14984fcde74fb4f47a69ac91be61 (patch)
tree95b358b4e586a87fe7030075ce2994ca50c65307 /sbin/pfctl/pf_print_state.c
parent265532f51cf7ff6f96eb52b34e2adb0d1a44bde6 (diff)
Add missing return. Fix following buglet:
# echo "pass in from <veryLONGtableNAME>" | pfctl -nvf- pass in from <veryLONGtableNAME>/0 to any
Diffstat (limited to 'sbin/pfctl/pf_print_state.c')
-rw-r--r--sbin/pfctl/pf_print_state.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index bd6b4f7e27e..b8f31da125f 100644
--- a/sbin/pfctl/pf_print_state.c
+++ b/sbin/pfctl/pf_print_state.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_print_state.c,v 1.22 2003/03/08 16:06:03 dhartmei Exp $ */
+/* $OpenBSD: pf_print_state.c,v 1.23 2003/03/24 17:06:39 cedric Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -54,7 +54,7 @@ print_addr(struct pf_addr_wrap *addr, sa_family_t af, int verbose)
if (addr->type == PF_ADDR_DYNIFTL)
printf("(%s)", addr->v.ifname);
- else if (addr->type == PF_ADDR_TABLE)
+ else if (addr->type == PF_ADDR_TABLE) {
if (verbose)
if (addr->p.tblcnt == -1)
printf("<%s:*>", addr->v.tblname);
@@ -63,7 +63,8 @@ print_addr(struct pf_addr_wrap *addr, sa_family_t af, int verbose)
addr->p.tblcnt);
else
printf("<%s>", addr->v.tblname);
- else {
+ return;
+ } else {
if (inet_ntop(af, &addr->v.a.addr, buf, sizeof(buf)) == NULL)
printf("?");
else