mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
fixed bug #35291: NULL pointer in pbuf_copy
This commit is contained in:
parent
1d96195f47
commit
83b46811f9
@ -6,6 +6,9 @@ HISTORY
|
||||
|
||||
++ New features:
|
||||
|
||||
2012-01-20: Simon Goldschmidt
|
||||
* pbuf.c: fixed bug #35291: NULL pointer in pbuf_copy
|
||||
|
||||
2012-01-16: Simon Goldschmidt
|
||||
* opt.h, icmp.c: Added option CHECKSUM_GEN_ICMP
|
||||
|
||||
|
@ -863,7 +863,7 @@ pbuf_copy(struct pbuf *p_to, struct pbuf *p_from)
|
||||
/* iterate through pbuf chain */
|
||||
do
|
||||
{
|
||||
LWIP_ASSERT("p_to != NULL", p_to != NULL);
|
||||
LWIP_ERROR("p_to != NULL", p_to != NULL, return ERR_ARG;);
|
||||
/* copy one part of the original chain */
|
||||
if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
|
||||
/* complete current p_from fits into current p_to */
|
||||
|
Loading…
Reference in New Issue
Block a user