mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-16 20:41:20 +08:00
Fix Nmap reset on ESP8266
PUBLISHED_FROM=7b9c85e7708721f2c6d0e2fc8ad5c32c61b48854
This commit is contained in:
parent
448b44094a
commit
66b23b11b0
@ -14500,6 +14500,7 @@ static void tcp_close_tcpip(void *arg) {
|
|||||||
|
|
||||||
void mg_lwip_handle_accept(struct mg_connection *nc) {
|
void mg_lwip_handle_accept(struct mg_connection *nc) {
|
||||||
struct mg_lwip_conn_state *cs = (struct mg_lwip_conn_state *) nc->sock;
|
struct mg_lwip_conn_state *cs = (struct mg_lwip_conn_state *) nc->sock;
|
||||||
|
if (cs->pcb.tcp == NULL) return;
|
||||||
#if MG_ENABLE_SSL
|
#if MG_ENABLE_SSL
|
||||||
if (cs->lc->flags & MG_F_SSL) {
|
if (cs->lc->flags & MG_F_SSL) {
|
||||||
if (mg_ssl_if_conn_accept(nc, cs->lc) != MG_SSL_OK) {
|
if (mg_ssl_if_conn_accept(nc, cs->lc) != MG_SSL_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user