mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 12:49:01 +08:00
unbreak after incorrect cleanup
This commit is contained in:
parent
7b1900d547
commit
4d6b126b9d
@ -9992,7 +9992,7 @@ static int mg_tls_server_recv_hello(struct mg_connection *c) {
|
||||
if (cipher_suites_len > (rio->len - 46 - session_id_len)) goto fail;
|
||||
ext_len = MG_LOAD_BE16(rio->buf + 48 + session_id_len + cipher_suites_len);
|
||||
ext = rio->buf + 50 + session_id_len + cipher_suites_len;
|
||||
if (ext_len > (rio->len - 52 - session_id_len - cipher_suites_len)) goto fail;
|
||||
if (ext_len > (rio->len - 50 - session_id_len - cipher_suites_len)) goto fail;
|
||||
for (j = 0; j < ext_len;) {
|
||||
uint16_t k;
|
||||
uint16_t key_exchange_len;
|
||||
|
@ -553,7 +553,7 @@ static int mg_tls_server_recv_hello(struct mg_connection *c) {
|
||||
if (cipher_suites_len > (rio->len - 46 - session_id_len)) goto fail;
|
||||
ext_len = MG_LOAD_BE16(rio->buf + 48 + session_id_len + cipher_suites_len);
|
||||
ext = rio->buf + 50 + session_id_len + cipher_suites_len;
|
||||
if (ext_len > (rio->len - 52 - session_id_len - cipher_suites_len)) goto fail;
|
||||
if (ext_len > (rio->len - 50 - session_id_len - cipher_suites_len)) goto fail;
|
||||
for (j = 0; j < ext_len;) {
|
||||
uint16_t k;
|
||||
uint16_t key_exchange_len;
|
||||
|
Loading…
Reference in New Issue
Block a user