From ebefc0be7cdbb71dfbf73397692c6e97c1ffdfea Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Wed, 4 May 2022 09:43:21 +0000 Subject: [PATCH] [KERNEL] Fix incorrect address of the first buffer git-svn-id: svn://kolibrios.org@9805 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/IPv4.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc index 7791265e4c..69192543d8 100644 --- a/kernel/trunk/network/IPv4.inc +++ b/kernel/trunk/network/IPv4.inc @@ -506,7 +506,7 @@ ipv4_input: call kernel_alloc test eax, eax je .destroy_slot_pop ; If we dont have enough space to allocate the buffer, discard all packets in slot - mov edx, [esp] ; Get pointer to first fragment entry back in edx + mov edx, [esp+4] ; Get pointer to first fragment entry back in edx .rebuild_packet_loop: movzx ecx, [edx + sizeof.NET_BUFF + sizeof.IPv4_FRAGMENT_entry + IPv4_header.FlagsAndFragmentOffset] ; Calculate the fragment offset