mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Fixed 3132700 (close_notify), 3078672 (regular_square), 3072881
(process_server_hello). Using Montgomery until q_dash issue solved. git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@180 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -250,6 +250,12 @@ static int process_server_hello(SSL *ssl)
|
||||
offset = 6 + SSL_RANDOM_SIZE; /* skip of session id size */
|
||||
sess_id_size = buf[offset++];
|
||||
|
||||
if (sess_id_size > SSL_SESSION_ID_SIZE)
|
||||
{
|
||||
ret = SSL_ERROR_INVALID_SESSION;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (num_sessions)
|
||||
{
|
||||
ssl->session = ssl_session_update(num_sessions,
|
||||
|
Reference in New Issue
Block a user