summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipv4.c b/lib/ipv4.c
index 943e2c8..bf5474a 100644
--- a/lib/ipv4.c
+++ b/lib/ipv4.c
@@ -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;