From 9db17d5384b6fd9b9ae011b63efac745cc0a28d3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 12 Apr 2009 05:07:15 +0000 Subject: [PATCH] - Don't close the connection handle and dereference the connection object when we run out of memory because it will cause a crash when AfdCleanupSocket tries to do the same - Fixes bug 4362 svn path=/trunk/; revision=40471 --- reactos/drivers/network/afd/afd/listen.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/reactos/drivers/network/afd/afd/listen.c b/reactos/drivers/network/afd/afd/listen.c index 62d1ca1fe76..8be524766c0 100644 --- a/reactos/drivers/network/afd/afd/listen.c +++ b/reactos/drivers/network/afd/afd/listen.c @@ -143,9 +143,6 @@ static NTSTATUS NTAPI ListenComplete Qelt = ExAllocatePool( NonPagedPool, sizeof(*Qelt) ); if( !Qelt ) { - /* Is this correct? */ - TdiCloseDevice( FCB->Connection.Handle, - FCB->Connection.Object ); Status = STATUS_NO_MEMORY; } else { UINT AddressType =