summaryrefslogtreecommitdiff
path: root/sbin/ipsecadm
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-26 21:10:29 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-26 21:10:29 +0000
commit6d45facc48198365d358a23a30e8fd484baf80ef (patch)
tree6c1c4326f20a13adca2156920b0ebc43a543a3aa /sbin/ipsecadm
parent23f1cdd69c6b4ace9d9d2ebb5ccb182bdd89fc44 (diff)
configure sa_family on mask too. to preserve older practice
Diffstat (limited to 'sbin/ipsecadm')
-rw-r--r--sbin/ipsecadm/ipsecadm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c
index 5c792085a52..bc92278e4b0 100644
--- a/sbin/ipsecadm/ipsecadm.c
+++ b/sbin/ipsecadm/ipsecadm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecadm.c,v 1.58 2001/06/26 20:44:22 itojun Exp $ */
+/* $OpenBSD: ipsecadm.c,v 1.59 2001/06/26 21:10:28 itojun Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -173,6 +173,7 @@ addrparse(const char *str, struct sockaddr *addr, struct sockaddr *mask)
memset(mask, 0, addr->sa_len);
mask->sa_len = addr->sa_len;
+ mask->sa_family = addr->sa_family;
memset(ap, 0xff, prefixlen / 8);
if (prefixlen % 8)
ap[prefixlen / 8] = (0xff00 >> (prefixlen % 8)) & 0xff;