mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-15 23:42:33 +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
@ -642,6 +642,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user