diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-10-30 12:29:41 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-10-30 12:29:41 +0000 |
commit | 374f656b1d431aeba533b428f8dad3867a325426 (patch) | |
tree | d1d60273e1bf65de73659aec926b996932f762e6 /sbin/iked | |
parent | f3b668b60b24dcb4d9a12a01b521efdefba778dc (diff) |
Fix key payload size. Use size from new SA.
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/ikev2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 8632374a119..a411c262bc0 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.272 2020/10/29 21:49:58 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.273 2020/10/30 12:29:40 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -3951,7 +3951,7 @@ ikev2_ike_sa_rekey(struct iked *env, void *arg) ke->kex_dhgroup = htobe16(group->id); if (ikev2_add_buf(e, nsa->sa_dhiexchange) == -1) goto done; - len = sizeof(*ke) + ibuf_length(sa->sa_dhiexchange); + len = sizeof(*ke) + ibuf_length(nsa->sa_dhiexchange); if (ikev2_next_payload(pld, len, IKEV2_PAYLOAD_NONE) == -1) goto done; |