mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver svn path=/trunk/; revision=52502
This commit is contained in:
parent
16ded1b13b
commit
f828c2431c
2 changed files with 4 additions and 4 deletions
|
@ -603,8 +603,6 @@ static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
DoDisconnect(PAFD_FCB FCB)
|
DoDisconnect(PAFD_FCB FCB)
|
||||||
{
|
{
|
||||||
PAFD_DISCONNECT_INFO DisReq;
|
|
||||||
IO_STATUS_BLOCK Iosb;
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
ASSERT(FCB->DisconnectPending);
|
ASSERT(FCB->DisconnectPending);
|
||||||
|
@ -621,9 +619,9 @@ DoDisconnect(PAFD_FCB FCB)
|
||||||
|
|
||||||
Status = TdiDisconnect(&FCB->DisconnectIrp.InFlightRequest,
|
Status = TdiDisconnect(&FCB->DisconnectIrp.InFlightRequest,
|
||||||
FCB->Connection.Object,
|
FCB->Connection.Object,
|
||||||
&DisReq->Timeout,
|
&FCB->DisconnectTimeout,
|
||||||
FCB->DisconnectFlags,
|
FCB->DisconnectFlags,
|
||||||
&Iosb,
|
&FCB->DisconnectIrp.Iosb,
|
||||||
DisconnectComplete,
|
DisconnectComplete,
|
||||||
FCB,
|
FCB,
|
||||||
FCB->ConnectCallInfo,
|
FCB->ConnectCallInfo,
|
||||||
|
@ -700,6 +698,7 @@ AfdDisconnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||||
}
|
}
|
||||||
|
|
||||||
FCB->DisconnectFlags = Flags;
|
FCB->DisconnectFlags = Flags;
|
||||||
|
FCB->DisconnectTimeout = DisReq->Timeout;
|
||||||
FCB->DisconnectPending = TRUE;
|
FCB->DisconnectPending = TRUE;
|
||||||
|
|
||||||
Status = QueueUserModeIrp(FCB, Irp, FUNCTION_DISCONNECT);
|
Status = QueueUserModeIrp(FCB, Irp, FUNCTION_DISCONNECT);
|
||||||
|
|
|
@ -184,6 +184,7 @@ typedef struct _AFD_FCB {
|
||||||
UINT ConnSeq;
|
UINT ConnSeq;
|
||||||
USHORT DisconnectFlags;
|
USHORT DisconnectFlags;
|
||||||
BOOLEAN DisconnectPending;
|
BOOLEAN DisconnectPending;
|
||||||
|
LARGE_INTEGER DisconnectTimeout;
|
||||||
PTRANSPORT_ADDRESS LocalAddress, RemoteAddress;
|
PTRANSPORT_ADDRESS LocalAddress, RemoteAddress;
|
||||||
PTDI_CONNECTION_INFORMATION AddressFrom, ConnectCallInfo, ConnectReturnInfo;
|
PTDI_CONNECTION_INFORMATION AddressFrom, ConnectCallInfo, ConnectReturnInfo;
|
||||||
AFD_TDI_OBJECT AddressFile, Connection;
|
AFD_TDI_OBJECT AddressFile, Connection;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue