mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
[TCPIP]
Patches by cgutman applied to the branch (see r52125, r52092, r52086, r52083, r52013) svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52138
This commit is contained in:
parent
e385be59b1
commit
c31d8d66b9
13 changed files with 229 additions and 145 deletions
|
@ -161,6 +161,9 @@ VOID AddrFileFree(
|
|||
|
||||
TI_DbgPrint(MID_TRACE, ("Called.\n"));
|
||||
|
||||
/* We should not be associated with a connection here */
|
||||
ASSERT(!AddrFile->Connection);
|
||||
|
||||
/* Remove address file from the global list */
|
||||
TcpipAcquireSpinLock(&AddressFileListLock, &OldIrql);
|
||||
RemoveEntryList(&AddrFile->ListEntry);
|
||||
|
@ -377,17 +380,14 @@ NTSTATUS FileCloseAddress(
|
|||
if (!Request->Handle.AddressHandle) return STATUS_INVALID_PARAMETER;
|
||||
|
||||
LockObject(AddrFile, &OldIrql);
|
||||
/* We have to close this connection because we started it */
|
||||
|
||||
/* We have to close this listener because we started it */
|
||||
if( AddrFile->Listener )
|
||||
{
|
||||
AddrFile->Listener->AddressFile = NULL;
|
||||
TCPClose( AddrFile->Listener );
|
||||
}
|
||||
if( AddrFile->Connection )
|
||||
{
|
||||
AddrFile->Connection->AddressFile = NULL;
|
||||
DereferenceObject( AddrFile->Connection );
|
||||
}
|
||||
|
||||
UnlockObject(AddrFile, OldIrql);
|
||||
|
||||
DereferenceObject(AddrFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue