diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-06-29 18:52:18 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-06-29 18:52:18 +0000 |
commit | 9b1cd4b782681b4130d746d3ed6f4efbaeaa89ca (patch) | |
tree | 3ab56060102464963360c1550ef0f40c9a40cc5b /sbin/isakmpd/ike_phase_1.c | |
parent | 3d6be290c7eacaeaa47182b99ba881001085d78e (diff) |
Change get_src/get_dst API as we get the length with sa_len.
Diffstat (limited to 'sbin/isakmpd/ike_phase_1.c')
-rw-r--r-- | sbin/isakmpd/ike_phase_1.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/isakmpd/ike_phase_1.c b/sbin/isakmpd/ike_phase_1.c index d3a32c1923e..e601619370e 100644 --- a/sbin/isakmpd/ike_phase_1.c +++ b/sbin/isakmpd/ike_phase_1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_phase_1.c,v 1.27 2001/06/29 04:12:00 ho Exp $ */ +/* $OpenBSD: ike_phase_1.c,v 1.28 2001/06/29 18:52:16 ho Exp $ */ /* $EOM: ike_phase_1.c,v 1.31 2000/12/11 23:47:56 niklas Exp $ */ /* @@ -785,7 +785,6 @@ ike_phase_1_send_ID (struct message *msg) char header[80]; ssize_t sz; struct sockaddr *src; - int src_len; int initiator = exchange->initiator; u_int8_t **id; size_t *id_len; @@ -823,7 +822,7 @@ ike_phase_1_send_ID (struct message *msg) { case IPSEC_ID_IPV4_ADDR: case IPSEC_ID_IPV6_ADDR: - msg->transport->vtbl->get_src (msg->transport, &src, &src_len); + msg->transport->vtbl->get_src (msg->transport, &src); /* Already in network byteorder. */ memcpy (buf + ISAKMP_ID_DATA_OFF, sockaddr_data (src), @@ -843,7 +842,7 @@ ike_phase_1_send_ID (struct message *msg) } else { - msg->transport->vtbl->get_src (msg->transport, &src, &src_len); + msg->transport->vtbl->get_src (msg->transport, &src); switch (src->sa_family) { case AF_INET: |