Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Apr 4, 2024
1 parent e21d30e commit 49e2142
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ssl/record/rec_layer_d1.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,16 +656,15 @@ int do_dtls1_write(SSL_CONNECTION *sc, uint8_t type, const unsigned char *buf,
}

tmpl.type = type;
if (sc->version == DTLS1_3_VERSION) {
if (sc->version == DTLS1_3_VERSION)
tmpl.version = DTLS1_2_VERSION;
}
/*
* Special case: for hello verify request, client version 1.0 and we
* haven't decided which version to use yet send back using version 1.0
* header: otherwise some clients will ignore it.
*/
else if (s->method->version == DTLS_ANY_VERSION
&& sc->max_proto_version != DTLS1_BAD_VER)
&& sc->max_proto_version != DTLS1_BAD_VER)
tmpl.version = DTLS1_VERSION;
else
tmpl.version = sc->version;
Expand Down

0 comments on commit 49e2142

Please sign in to comment.