diff options
author | Ondrej Filip <feela@network.cz> | 1999-05-24 17:37:45 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 1999-05-24 17:37:45 +0000 |
commit | daeb60393d011f8ee1326e212b310983276b6ba1 (patch) | |
tree | 8c013eb595ff2ad6f591392a94cc39428d69f63b | |
parent | b9f8590025fd5d6dd360f759c5a219d69b975123 (diff) |
Small bug in ipv4_skip_header.
-rw-r--r-- | lib/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |