Author: cgutman Date: Sun Apr 12 09:07:15 2009 New Revision: 40471
URL: http://svn.reactos.org/svn/reactos?rev=40471&view=rev Log: - 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
Modified: trunk/reactos/drivers/network/afd/afd/listen.c
Modified: trunk/reactos/drivers/network/afd/afd/listen.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/lis... ============================================================================== --- trunk/reactos/drivers/network/afd/afd/listen.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/afd/afd/listen.c [iso-8859-1] Sun Apr 12 09:07:15 2009 @@ -143,9 +143,6 @@
Qelt = ExAllocatePool( NonPagedPool, sizeof(*Qelt) ); if( !Qelt ) { - /* Is this correct? */ - TdiCloseDevice( FCB->Connection.Handle, - FCB->Connection.Object ); Status = STATUS_NO_MEMORY; } else { UINT AddressType =