mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-17 20:42:40 +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("t != NULL", t != NULL);
|
||||
|
||||
if(t == NULL)
|
||||
return;
|
||||
|
||||
/* proceed to last pbuf of chain */
|
||||
for (p = h; p->next != NULL; p = p->next) {
|
||||
/* add total length of second chain to all totals of first chain */
|
||||
|
Loading…
x
Reference in New Issue
Block a user