From 4f7e72335984d168a0cc3816bc238b40ea51bd59 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 23 Aug 2012 16:21:28 +0000 Subject: [PATCH] [TCPIP] * Fix a read-after-free. CID 716802. svn path=/trunk/; revision=57143 --- reactos/drivers/network/tcpip/tcpip/fileobjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/network/tcpip/tcpip/fileobjs.c b/reactos/drivers/network/tcpip/tcpip/fileobjs.c index 771268873a8..7ef8c7d558a 100644 --- a/reactos/drivers/network/tcpip/tcpip/fileobjs.c +++ b/reactos/drivers/network/tcpip/tcpip/fileobjs.c @@ -342,8 +342,8 @@ NTSTATUS FileOpenAddress( if (!AddrIsUnspecified(&AddrFile->Address) && !AddrLocateInterface(&AddrFile->Address)) { - ExFreePoolWithTag(AddrFile, ADDR_FILE_TAG); TI_DbgPrint(MIN_TRACE, ("Non-local address given (0x%X).\n", A2S(&AddrFile->Address))); + ExFreePoolWithTag(AddrFile, ADDR_FILE_TAG); return STATUS_INVALID_ADDRESS; }