mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
Re-added code for checking tail-parameter for NULL in
pbuf_chain() to provide for better backward compatibility.
This commit is contained in:
parent
ea5cd98e83
commit
0ef3b9b3c5
@ -643,6 +643,9 @@ pbuf_chain(struct pbuf *h, struct pbuf *t)
|
|||||||
LWIP_ASSERT("h != NULL", h != NULL);
|
LWIP_ASSERT("h != NULL", h != NULL);
|
||||||
LWIP_ASSERT("t != NULL", t != NULL);
|
LWIP_ASSERT("t != NULL", t != NULL);
|
||||||
|
|
||||||
|
if(t == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
/* proceed to last pbuf of chain */
|
/* proceed to last pbuf of chain */
|
||||||
for (p = h; p->next != NULL; p = p->next) {
|
for (p = h; p->next != NULL; p = p->next) {
|
||||||
/* add total length of second chain to all totals of first chain */
|
/* add total length of second chain to all totals of first chain */
|
||||||
|
Loading…
Reference in New Issue
Block a user