diff options
author | Ondrej Filip <feela@network.cz> | 1999-05-24 19:37:45 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 1999-05-24 19:37:45 +0200 |
commit | daeb60393d011f8ee1326e212b310983276b6ba1 (patch) | |
tree | 8c013eb595ff2ad6f591392a94cc39428d69f63b /lib | |
parent | b9f8590025fd5d6dd360f759c5a219d69b975123 (diff) | |
download | bird-daeb60393d011f8ee1326e212b310983276b6ba1.tar bird-daeb60393d011f8ee1326e212b310983276b6ba1.zip |
Small bug in ipv4_skip_header.
Diffstat (limited to 'lib')
-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; |