mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 04:08:42 +00:00
Small bug in ipv4_skip_header.
This commit is contained in:
parent
b9f8590025
commit
daeb60393d
@ -104,7 +104,7 @@ ipv4_skip_header(byte *pkt, int *len)
|
||||
if (l < 20 || (*pkt & 0xf0) != 0x40)
|
||||
return NULL;
|
||||
q = (*pkt & 0x0f) * 4;
|
||||
if (q < l)
|
||||
if (q > l)
|
||||
return NULL;
|
||||
*len -= q;
|
||||
return pkt + q;
|
||||
|
Loading…
Reference in New Issue
Block a user