From cb850e0d874dc00163f05c25b09adf75655d0818 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Thu, 30 Mar 2006 15:30:19 +0000 Subject: when resolving interface names to ip adresses, set netmask to all bits 1 --- sbin/ipsecctl/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/ipsecctl/parse.y') 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 @@ -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; } -- cgit v1.2.3