From: "Gabriel Ivăncescu" Subject: [PATCH resend 06/12] iphlpapi: Fix adjusting data pointer after an ICMP reply. Message-Id: <1db11f95442ec32aeffa4a8398318e72bee0611b.1606139119.git.gabrielopcode@gmail.com> Date: Mon, 23 Nov 2020 15:47:43 +0200 In-Reply-To: References: The code above it already sets endbuf to the beginning of the last data added. On a new reply, endbuf is decremented to make space for the new data. There's no reason to adjust it again for the old data after it has already been set. Signed-off-by: Gabriel Ivăncescu --- dlls/iphlpapi/icmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c index b6d2ffd..79fd35f 100644 --- a/dlls/iphlpapi/icmp.c +++ b/dlls/iphlpapi/icmp.c @@ -299,7 +299,6 @@ static DWORD icmp_get_reply(int sid, unsigned char *buffer, DWORD send_time, voi } /* Prepare for the next packet */ - endbuf-=ier->DataSize; ier++; /* Check out whether there is more but don't wait this time */ -- 2.21.0