diff options
author | Stefan Bühler <stbuehler@web.de> | 2020-03-27 17:17:57 +0100 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2020-03-27 17:17:57 +0100 |
commit | c01011c2d8533dbbbe754e49e256c109cb848d0d (patch) | |
tree | 3646dd052f79f779f9d3301c9f7c124c79fd9b9d | |
parent | 8492a5cea6960116705e3acd8c3f655a6577f021 (diff) | |
download | gnutls-c01011c2d8533dbbbe754e49e256c109cb848d0d.tar.gz |
dtls client hello: fix zeroed random (fixes #960)
This broke with bcf4de03 "handshake: treat reply to HRR as a reply to
hello verify request", which failed to "De Morgan" properly.
Signed-off-by: Stefan Bühler <stbuehler@web.de>
-rw-r--r-- | lib/handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.c b/lib/handshake.c index 5739df213e..84a0e52101 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -2167,7 +2167,7 @@ static int send_client_hello(gnutls_session_t session, int again) /* Generate random data */ if (!(session->internals.hsk_flags & HSK_HRR_RECEIVED) && - !(IS_DTLS(session) && session->internals.dtls.hsk_hello_verify_requests == 0)) { + !(IS_DTLS(session) && session->internals.dtls.hsk_hello_verify_requests != 0)) { ret = _gnutls_gen_client_random(session); if (ret < 0) { gnutls_assert(); |