summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-10-30 11:55:19 +0000
committerhenning <henning@openbsd.org>2002-10-30 11:55:19 +0000
commit6d705aa8142148fb6211af7096b84ac22748b155 (patch)
tree0d3b04653e23c80f36748e9f932f7977161a739e
parentfix interface expansion. since the reversed list expansion code was (diff)
downloadwireguard-openbsd-6d705aa8142148fb6211af7096b84ac22748b155.tar.xz
wireguard-openbsd-6d705aa8142148fb6211af7096b84ac22748b155.zip
simplify
-rw-r--r--sbin/pfctl/parse.y7
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 27302d037fe..550a44ae912 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.177 2002/10/30 11:52:49 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.178 2002/10/30 11:55:19 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2929,10 +2929,7 @@ host(char *s)
if (ifa_exists(s) || !strncmp(s, "self", IFNAMSIZ)) {
/* interface with this name exists */
- if ((h = ifa_lookup(s, PFCTL_IFLOOKUP_HOST)) == NULL)
- return (NULL);
- else
- return (h);
+ return(ifa_lookup(s, PFCTL_IFLOOKUP_HOST));
}
if (inet_aton(s, &ina) == 1) {