diff options
Diffstat (limited to 'kernel/network/ipv4.c')
-rw-r--r-- | kernel/network/ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/network/ipv4.c b/kernel/network/ipv4.c index 6aa03ba..6335a09 100644 --- a/kernel/network/ipv4.c +++ b/kernel/network/ipv4.c @@ -73,8 +73,9 @@ void handle_ipv4(const u8 *payload, u32 packet_length) { *(u16 *)(payload + 10) = 0; u16 calc_checksum = ip_checksum((u8 *)payload, 20); *(u16 *)(payload + 10) = saved_checksum; - if (calc_checksum != saved_checksum) + if (calc_checksum != saved_checksum) { return; + } u8 version = (*payload & 0xF0) >> 4; u8 IHL = (*payload & 0xF); |