mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Fix bug #52113: recv callback: To free or not to free pbuf when returning ERR_ABRT?
Change the text according to Ambroz' suggestion
This commit is contained in:
parent
ada6a84785
commit
653a1e7778
@ -256,10 +256,9 @@ window.
|
|||||||
|
|
||||||
Sets the callback function that will be called when new data
|
Sets the callback function that will be called when new data
|
||||||
arrives. The callback function will be passed a NULL pbuf to
|
arrives. The callback function will be passed a NULL pbuf to
|
||||||
indicate that the remote host has closed the connection. If
|
indicate that the remote host has closed the connection. If the
|
||||||
there are no errors and the callback function is to return
|
callback function returns ERR_OK or ERR_ABRT it must have
|
||||||
ERR_OK, then it must free the pbuf. Otherwise, it must not
|
freed the pbuf, otherwise it must not have freed it.
|
||||||
free the pbuf so that lwIP core code can store it.
|
|
||||||
|
|
||||||
- void tcp_recved(struct tcp_pcb *pcb, u16_t len)
|
- void tcp_recved(struct tcp_pcb *pcb, u16_t len)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user