diff options
| author | Dirk Ziegelmeier <[email protected]> | 2017-10-16 10:01:45 +0200 |
|---|---|---|
| committer | Dirk Ziegelmeier <[email protected]> | 2017-10-16 10:01:45 +0200 |
| commit | 653a1e7778540ee7e4cbc73832f693b111005210 (patch) | |
| tree | 0d67a700becd093ad2c09d17a66fd19ad11fcaeb /doc | |
| parent | ada6a84785213ed6c70ac96b8d7465ff7eed7ac0 (diff) | |
Fix bug #52113: recv callback: To free or not to free pbuf when returning ERR_ABRT?
Change the text according to Ambroz' suggestion
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/rawapi.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/rawapi.txt b/doc/rawapi.txt index 813ddad6..4766b81a 100644 --- a/doc/rawapi.txt +++ b/doc/rawapi.txt @@ -256,10 +256,9 @@ window. Sets the callback function that will be called when new data arrives. The callback function will be passed a NULL pbuf to - indicate that the remote host has closed the connection. If - there are no errors and the callback function is to return - ERR_OK, then it must free the pbuf. Otherwise, it must not - free the pbuf so that lwIP core code can store it. + indicate that the remote host has closed the connection. If the + callback function returns ERR_OK or ERR_ABRT it must have + freed the pbuf, otherwise it must not have freed it. - void tcp_recved(struct tcp_pcb *pcb, u16_t len) |
