summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/openbsd/sysdep.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-06-29 18:45:30 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-06-29 18:45:30 +0000
commit3d6be290c7eacaeaa47182b99ba881001085d78e (patch)
tree0848597d679e5892cba645537341da316d8d0d82 /sbin/isakmpd/sysdep/openbsd/sysdep.c
parentad52629aefaceae3b6d9ef8b4bb563c1a63155b0 (diff)
More sa_len usage.
Diffstat (limited to 'sbin/isakmpd/sysdep/openbsd/sysdep.c')
-rw-r--r--sbin/isakmpd/sysdep/openbsd/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/sysdep/openbsd/sysdep.c b/sbin/isakmpd/sysdep/openbsd/sysdep.c
index 8b722a20c23..bfc3890389a 100644
--- a/sbin/isakmpd/sysdep/openbsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/openbsd/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.9 2001/05/05 00:51:49 angelos Exp $ */
+/* $OpenBSD: sysdep.c,v 1.10 2001/06/29 18:45:27 ho Exp $ */
/* $EOM: sysdep.c,v 1.9 2000/12/04 04:46:35 angelos Exp $ */
/*
@@ -128,7 +128,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. */