summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/openbsd-encap/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-encap/sysdep.c
parentad52629aefaceae3b6d9ef8b4bb563c1a63155b0 (diff)
More sa_len usage.
Diffstat (limited to 'sbin/isakmpd/sysdep/openbsd-encap/sysdep.c')
-rw-r--r--sbin/isakmpd/sysdep/openbsd-encap/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/sysdep/openbsd-encap/sysdep.c b/sbin/isakmpd/sysdep/openbsd-encap/sysdep.c
index eef756f5d08..b4b823cc4a3 100644
--- a/sbin/isakmpd/sysdep/openbsd-encap/sysdep.c
+++ b/sbin/isakmpd/sysdep/openbsd-encap/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.4 2001/05/05 00:51:49 angelos Exp $ */
+/* $OpenBSD: sysdep.c,v 1.5 2001/06/29 18:45:27 ho Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -127,7 +127,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. */