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:06:08 +0000 (11:06 +1000)
commitf570d33b02d824e2a3f676f718c4692572f45333
treefcfb7a5fa4caab1bb3787848087bcd21980f9d62
parentd0196ddcba60a69930d1b1fec579949c8788be34
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)
ssl/d1_lib.c
ssl/ssl_local.h