summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-24 19:37:45 +0200
committerOndrej Filip <feela@network.cz>1999-05-24 19:37:45 +0200
commitdaeb60393d011f8ee1326e212b310983276b6ba1 (patch)
tree8c013eb595ff2ad6f591392a94cc39428d69f63b
parentb9f8590025fd5d6dd360f759c5a219d69b975123 (diff)
downloadbird-daeb60393d011f8ee1326e212b310983276b6ba1.tar
bird-daeb60393d011f8ee1326e212b310983276b6ba1.zip
Small bug in ipv4_skip_header.
-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;