diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-10-26 13:29:27 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-10-26 13:29:27 +0000 |
commit | 3280c63ccb946ae977d0b44793122c781361c11b (patch) | |
tree | 997375769da49213a937eeb057adcc824b34ebe0 /sbin/isakmpd/cookie.c | |
parent | 53ad6c2a25ef0c135d429a16bb3f7ddf0527fbb0 (diff) |
Change to use sysdep_sa_len() function.
Diffstat (limited to 'sbin/isakmpd/cookie.c')
-rw-r--r-- | sbin/isakmpd/cookie.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/cookie.c b/sbin/isakmpd/cookie.c index 27b1bbe5947..f13672e4be4 100644 --- a/sbin/isakmpd/cookie.c +++ b/sbin/isakmpd/cookie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cookie.c,v 1.9 2001/06/29 18:52:16 ho Exp $ */ +/* $OpenBSD: cookie.c,v 1.10 2001/10/26 13:29:26 ho Exp $ */ /* $EOM: cookie.c,v 1.21 1999/08/05 15:00:04 niklas Exp $ */ /* @@ -67,9 +67,9 @@ cookie_gen (struct transport *t, struct exchange *exchange, u_int8_t *buf, hash->Init (hash->ctx); (*t->vtbl->get_dst) (t, &name); - hash->Update (hash->ctx, (u_int8_t *)name, name->sa_len); + hash->Update (hash->ctx, (u_int8_t *)name, sysdep_sa_len (name)); (*t->vtbl->get_src) (t, &name); - hash->Update (hash->ctx, (u_int8_t *)name, name->sa_len); + hash->Update (hash->ctx, (u_int8_t *)name, sysdep_sa_len (name)); if (exchange->initiator == 0) hash->Update (hash->ctx, exchange->cookies + ISAKMP_HDR_ICOOKIE_OFF, ISAKMP_HDR_ICOOKIE_LEN); |