mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
fixed bug #34112 Odd check in pbuf_alloced_custom (typo)
This commit is contained in:
parent
c55f6b40ec
commit
cd5d1ceadf
@ -41,6 +41,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-08-24: Simon Goldschmidt
|
||||||
|
* pbuf.c: fixed bug #34112 Odd check in pbuf_alloced_custom (typo)
|
||||||
|
|
||||||
2011-08-24: Simon Goldschmidt
|
2011-08-24: Simon Goldschmidt
|
||||||
* dhcp.c: fixed bug #34122 dhcp: hostname can overflow
|
* dhcp.c: fixed bug #34122 dhcp: hostname can overflow
|
||||||
|
|
||||||
|
@ -391,7 +391,7 @@ pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_cust
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LWIP_MEM_ALIGN_SIZE(offset) + length < payload_mem_len) {
|
if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) {
|
||||||
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
|
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user