summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-11-23 18:27:28 +0000
committerhenning <henning@openbsd.org>2002-11-23 18:27:28 +0000
commit0e33f4feb2c67dbd28e80d6397be2366b0c93445 (patch)
treeeba70ec50b031823a48d22311d21d49c8550dae4
parentDaniel's diff to untangle my mess with ifa_pick_ips like so: (diff)
downloadwireguard-openbsd-0e33f4feb2c67dbd28e80d6397be2366b0c93445.tar.xz
wireguard-openbsd-0e33f4feb2c67dbd28e80d6397be2366b0c93445.zip
easier
-rw-r--r--sbin/pfctl/parse.y10
1 files changed, 3 insertions, 7 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 601303f14c4..eddbb7989e2 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.205 2002/11/23 18:23:41 mcbride Exp $ */
+/* $OpenBSD: parse.y,v 1.206 2002/11/23 18:27:28 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3511,16 +3511,12 @@ remove_invalid_hosts(struct node_host **nh, sa_family_t *af)
}
}
- if (!*af) {
+ if (!*af)
yyerror("address family not given and translation "
"address expands to multiple address families");
- return;
- }
- if (*nh == NULL) {
+ else if (*nh == NULL)
yyerror("no translation address with matching address family "
"found.");
- return;
- }
}
struct node_host *