summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-06-16 15:05:38 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-06-16 15:05:38 +0000
commit552fb71c335599f8b2c878851ce0b5f182129a15 (patch)
tree9c714e500ca9dc1dc0e1fbe5f1ab6d0119071d33 /sbin
parentfa50d2a831524b1b929a504453f47233da5c4ead (diff)
fix ipv6-address and ipv6-address-mask mixup.
Found by Patrick Latifi. Thanks! ok ho@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/ipsec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c
index 62dbfabf690..3c01ed21073 100644
--- a/sbin/isakmpd/ipsec.c
+++ b/sbin/isakmpd/ipsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec.c,v 1.94 2004/06/14 09:55:41 ho Exp $ */
+/* $OpenBSD: ipsec.c,v 1.95 2004/06/16 15:05:37 hshoexer Exp $ */
/* $EOM: ipsec.c,v 1.143 2000/12/11 23:57:42 niklas Exp $ */
/*
@@ -1936,7 +1936,7 @@ ipsec_decode_id(char *buf, size_t size, u_int8_t *id, size_t id_len,
case IPSEC_ID_IPV6_ADDR_SUBNET:
util_ntoa(&addr, AF_INET6, id + ISAKMP_ID_DATA_OFF);
- util_ntoa(&addr, AF_INET6, id + ISAKMP_ID_DATA_OFF +
+ util_ntoa(&mask, AF_INET6, id + ISAKMP_ID_DATA_OFF +
sizeof(struct in6_addr));
snprintf(buf, size,
"%08x%08x%08x%08x/%08x%08x%08x%08x: %s/%s", *idp,