mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 20:29:04 +00:00
Ooops, checked in a wrong (test-) version before!
This commit is contained in:
parent
da2d9f3733
commit
f66bbda8b1
@ -360,12 +360,12 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment)
|
||||
if ((header_size_increment == 0) || (p == NULL))
|
||||
return 0;
|
||||
|
||||
increment_magnitude = header_size_increment;
|
||||
if (increment_magnitude < 0){
|
||||
increment_magnitude = -increment_magnitude;
|
||||
if (header_size_increment < 0){
|
||||
increment_magnitude = -header_size_increment;
|
||||
/* Check that we aren't going to move off the end of the pbuf */
|
||||
LWIP_ERROR("increment_magnitude > p->len", (increment_magnitude > p->len), return 1;);
|
||||
} else {
|
||||
increment_magnitude = header_size_increment;
|
||||
#if 0
|
||||
/* Can't assert these as some callers speculatively call
|
||||
pbuf_header() to see if it's OK. Will return 1 below instead. */
|
||||
|
Loading…
Reference in New Issue
Block a user