Skip to content

Commit

Permalink
QUIC: Error when non-empty session_id in CH (fixes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmshort committed Nov 2, 2022
1 parent 42a3473 commit 23180cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ssl/statem/statem_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,15 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
goto err;
}
}
#ifndef OPENSSL_NO_QUIC
if (SSL_IS_QUIC(s)) {
/* Any other QUIC checks on ClientHello here */
if (clienthello->session_id_len > 0) {
SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_LENGTH_MISMATCH);
goto err;
}
}
#endif
}

if (!PACKET_copy_all(&compression, clienthello->compressions,
Expand Down

0 comments on commit 23180cd

Please sign in to comment.