summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/freebsd/sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/sysdep/freebsd/sysdep.c')
-rw-r--r--sbin/isakmpd/sysdep/freebsd/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/sysdep/freebsd/sysdep.c b/sbin/isakmpd/sysdep/freebsd/sysdep.c
index 9f4a5eaf568..fd399485c74 100644
--- a/sbin/isakmpd/sysdep/freebsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/freebsd/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.4 2001/05/05 00:51:47 angelos Exp $ */
+/* $OpenBSD: sysdep.c,v 1.5 2001/06/29 18:45:28 ho Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -124,7 +124,8 @@ sysdep_ipsec_get_spi (size_t *sz, u_int8_t proto, struct sockaddr *src,
/* XXX should be random instead I think. */
return strdup ("\x12\x34\x56\x78");
}
- return KEY_API (get_spi) (sz, proto, src, srclen, dst, dstlen, seq);
+ return KEY_API (get_spi) (sz, proto, src, src->sa_len, dst, dst->sa_len,
+ seq);
}
/* Force communication on socket FD to go in the clear. */