mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
[LWIP]
- Implement LibTCPShutdown [IP] - Replace an incredibly broken implementation of TCPDisconnect which caused memory corruption with a working one using LibTCPShutdown svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52200
This commit is contained in:
parent
b3b5468071
commit
ade9312f85
3 changed files with 71 additions and 7 deletions
|
@ -316,19 +316,15 @@ NTSTATUS TCPDisconnect
|
|||
|
||||
if (Flags & TDI_DISCONNECT_RELEASE)
|
||||
{
|
||||
/* FIXME */
|
||||
LibTCPClose(Connection->SocketContext);
|
||||
Status = LibTCPShutdown(Connection->SocketContext, 0, 1);
|
||||
}
|
||||
|
||||
if ((Flags & TDI_DISCONNECT_ABORT) || !Flags)
|
||||
{
|
||||
/* FIXME */
|
||||
LibTCPClose(Connection->SocketContext);
|
||||
Status = LibTCPShutdown(Connection->SocketContext, 1, 1);
|
||||
}
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
DbgPrint("LibTCPClose: %x\n", Status);
|
||||
DbgPrint("LibTCPShutdown: %x\n", Status);
|
||||
|
||||
UnlockObject(Connection, OldIrql);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue