Skip to content

Commit 8a7b901

Browse files
committed
Merge pull request #133 from SalusaSecondus/master
Use S2N_TLS_SESSION_ID_LEN rather than constant 32 when checking session_id_len
2 parents abfe8e3 + bd537a7 commit 8a7b901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tls/s2n_client_hello.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int s2n_client_hello_recv(struct s2n_connection *conn)
5757
}
5858
conn->client_hello_version = conn->client_protocol_version;
5959

60-
if (session_id_len > 32) {
60+
if (session_id_len > S2N_TLS_SESSION_ID_LEN) {
6161
S2N_ERROR(S2N_ERR_BAD_MESSAGE);
6262
}
6363

0 commit comments

Comments
 (0)