Only call dtls1_start_timer() once
authorMatt Caswell <matt@openssl.org>
Wed, 2 Jun 2021 16:19:23 +0000 (17:19 +0100)
committerPauli <pauli@openssl.org>
Fri, 4 Jun 2021 01:07:13 +0000 (11:07 +1000)
commitbfcdfdee50b0adb9a6e448f07fd8f1c87c919cda
treebdd812c5f8c088954a984676c6b1f6d52de6ae37
parent5478387c14e0c22a525e2ec5ed37f6ffad4b7c59
Only call dtls1_start_timer() once

The function dtls1_handle_timeout() calls dtls1_double_timeout() which
was calling dtls1_start_timer(). However dtls1_start_timer() is also
called directly by dtls1_handle_timeout(). We only need to start the timer
once.

Fixes #15561

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15595)

(cherry picked from commit f570d33b02d824e2a3f676f718c4692572f45333)
ssl/d1_lib.c
ssl/ssl_local.h