[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-commits] [SCM] lwIP - A Lightweight TCPIP stack branch, master
Re: [lwip-commits] [SCM] lwIP - A Lightweight TCPIP stack branch, master, updated. b135a0aa4905d30b2fae0b67f7ee2dba2c4c12f7
Thu, 19 Mar 2015 11:34:25 +0100
On Thu, Mar 19, 2015 at 06:14:38AM +0000, Simon Goldschmidt wrote:
> pppos_input_tcpip: fix pbuf leak if tcpip_input returns error, use
> pbuf_take instead of duplicate copy code
Oh!, thanks for that :)
I wonder how many lwIP ports are buggy concerning this point then.
I also wonder why pbuf_take() is done this way, isn't it guaranteed that
pbuf_alloc() returns either the wanted size or NULL ? Looks like it can
return less than the wanted size based on how pbuf_take() is written.
Description: Digital signature