- 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
This commit is contained in:
Cameron Gutman 2009-04-12 05:07:15 +00:00
parent d418f42b89
commit 9db17d5384

View file

@ -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 =