Correctly handle a retransmitted ClientHello
authorMatt Caswell <matt@openssl.org>
Thu, 23 Jun 2022 10:39:38 +0000 (11:39 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 22 Sep 2022 11:24:02 +0000 (12:24 +0100)
commit9cdee31c892e8abe0048b69fddca53d8e0da8380
tree6ec51f4778b53a387e798d512bf7bfd5561670e1
parent33796db4a5c3ea68ae80530dcbff60222c5a2008
Correctly handle a retransmitted ClientHello

If we receive a ClientHello and send back a HelloVerifyRequest, we need
to be able to handle the scenario where the HelloVerifyRequest gets lost
and we receive another ClientHello with the message sequence number set to
0.

Fixes #18635

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18654)

(cherry picked from commit 81926c91567cd5d11eec38b9980438f45b276d72)
ssl/statem/statem_dtls.c