tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused

2.1.3-esp: 223101f1 tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused
This commit is contained in:
David Cermak
2020-12-29 21:35:25 +01:00
parent 8185cbce04
commit c97293f55c
+2
View File
@@ -541,6 +541,8 @@ tcp_input(struct pbuf *p, struct netif *inp)
TCP_EVENT_CLOSED(pcb, err);
if (err == ERR_ABRT) {
goto aborted;
} else if (err == ERR_MEM) {
tcp_set_flags(pcb, TF_CLOSEPEND);
}
}
}