Re-added code for checking tail-parameter for NULL in

pbuf_chain() to provide for better backward compatibility.
This commit is contained in:
anderscarlman 2003-04-26 20:32:23 +00:00
parent ea5cd98e83
commit 0ef3b9b3c5

View File

@ -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) {