diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-09-17 13:22:15 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-09-17 13:22:15 +0000 |
commit | 5e6dc1e134cfbce7bd421892984cfa2db86466e7 (patch) | |
tree | dcaaac368d69083db3e7270bb5b25620b1c56eb3 /sbin | |
parent | eb8cb6c6b6becffc73cb9173c0ea0b3f9c521eaf (diff) |
Set retransmit timeout for DELETE message on the replaced SA, not on
the replacement.
ok markus@
Diffstat (limited to 'sbin')
-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 5d765a6571d..7e001b16921 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.258 2020/09/17 13:19:27 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.259 2020/09/17 13:22:14 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -3002,7 +3002,7 @@ ikev2_record_dstid(struct iked *env, struct iked_sa *sa) ikev2_disable_timer(env, osa); ikev2_ike_sa_setreason(osa, "sa replaced"); ikev2_ikesa_delete(env, osa, 1); - timer_add(env, &sa->sa_timer, + timer_add(env, &osa->sa_timer, 3 * IKED_RETRANSMIT_TIMEOUT); } } |