diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-07-01 18:46:34 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-07-01 18:46:34 +0000 |
commit | f5f563a9d22ddd090c73691f04872dca99c02bcc (patch) | |
tree | 71983492a54c9f077f0540996b3c4bfffa533657 /sbin | |
parent | e136d64faa40a7c4dff2894d01e38755d8063dbb (diff) |
Set size correctly for IPv6 Phase 1 IDs.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/ike_phase_1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/ike_phase_1.c b/sbin/isakmpd/ike_phase_1.c index e601619370e..dbf908b7fb0 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.28 2001/06/29 18:52:16 ho Exp $ */ +/* $OpenBSD: ike_phase_1.c,v 1.29 2001/07/01 18:46:33 angelos Exp $ */ /* $EOM: ike_phase_1.c,v 1.31 2000/12/11 23:47:56 niklas Exp $ */ /* @@ -801,7 +801,8 @@ ike_phase_1_send_ID (struct message *msg) if (!my_id) my_id = conf_get_str ("General", "Default-phase-1-ID"); - sz = my_id ? ipsec_id_size (my_id, &id_type) : sizeof (in_addr_t); + msg->transport->vtbl->get_src (msg->transport, &src); + sz = my_id ? ipsec_id_size (my_id, &id_type) : sockaddr_len (src); if (sz == -1) return -1; |