Author: cgutman
Date: Sat Jul 2 20:26:21 2011
New Revision: 52502
URL:
http://svn.reactos.org/svn/reactos?rev=52502&view=rev
Log:
[AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver
Modified:
trunk/reactos/drivers/network/afd/afd/main.c
trunk/reactos/drivers/network/afd/include/afd.h
Modified: trunk/reactos/drivers/network/afd/afd/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/ma…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] Sat Jul 2 20:26:21 2011
@@ -603,8 +603,6 @@
NTSTATUS
DoDisconnect(PAFD_FCB FCB)
{
- PAFD_DISCONNECT_INFO DisReq;
- IO_STATUS_BLOCK Iosb;
NTSTATUS Status;
ASSERT(FCB->DisconnectPending);
@@ -621,9 +619,9 @@
Status = TdiDisconnect(&FCB->DisconnectIrp.InFlightRequest,
FCB->Connection.Object,
- &DisReq->Timeout,
+ &FCB->DisconnectTimeout,
FCB->DisconnectFlags,
- &Iosb,
+ &FCB->DisconnectIrp.Iosb,
DisconnectComplete,
FCB,
FCB->ConnectCallInfo,
@@ -700,6 +698,7 @@
}
FCB->DisconnectFlags = Flags;
+ FCB->DisconnectTimeout = DisReq->Timeout;
FCB->DisconnectPending = TRUE;
Status = QueueUserModeIrp(FCB, Irp, FUNCTION_DISCONNECT);
Modified: trunk/reactos/drivers/network/afd/include/afd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/includ…
==============================================================================
--- trunk/reactos/drivers/network/afd/include/afd.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/include/afd.h [iso-8859-1] Sat Jul 2 20:26:21 2011
@@ -184,6 +184,7 @@
UINT ConnSeq;
USHORT DisconnectFlags;
BOOLEAN DisconnectPending;
+ LARGE_INTEGER DisconnectTimeout;
PTRANSPORT_ADDRESS LocalAddress, RemoteAddress;
PTDI_CONNECTION_INFORMATION AddressFrom, ConnectCallInfo, ConnectReturnInfo;
AFD_TDI_OBJECT AddressFile, Connection;