summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-30 15:30:19 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-03-30 15:30:19 +0000
commitcb850e0d874dc00163f05c25b09adf75655d0818 (patch)
tree089b3a36bbe7844215b740c5d929b67c0d953e6d /sbin/ipsecctl
parentc7da147c0736e3edac9c48720fbc1133c2a6cf9f (diff)
when resolving interface names to ip adresses, set netmask to all bits 1
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r--sbin/ipsecctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index 97d544f2007..944affc4463 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.54 2006/03/30 12:44:20 markus Exp $ */
+/* $OpenBSD: parse.y,v 1.55 2006/03/30 15:30:18 hshoexer Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1294,6 +1294,7 @@ ifa_lookup(const char *ifa_name)
memcpy(ipa, &p->addr, sizeof(struct ipsec_addr_wrap));
if ((ipa->name = strdup(p->addr.name)) == NULL)
err(1, "ifa_lookup: strdup");
+ set_ipmask(ipa, 32);
break;
}