mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 16:16:42 +00:00
- Set the InFlightRequest to NULL when we complete
svn path=/branches/aicom-network-fixes/; revision=36381
This commit is contained in:
parent
86e1d71934
commit
e6330c4049
1 changed files with 7 additions and 0 deletions
|
@ -77,6 +77,11 @@ static NTSTATUS NTAPI StreamSocketConnectComplete
|
|||
AFD_DbgPrint(MID_TRACE,("Called: FCB %x, FO %x\n",
|
||||
Context, FCB->FileObject));
|
||||
|
||||
if( Irp->Cancel ) {
|
||||
if( FCB ) FCB->ConnectIrp.InFlightRequest = NULL;
|
||||
return STATUS_CANCELLED;
|
||||
}
|
||||
|
||||
/* I was wrong about this before as we can have pending writes to a not
|
||||
* yet connected socket */
|
||||
if( !SocketAcquireStateLock( FCB ) ) return STATUS_FILE_CLOSED;
|
||||
|
@ -84,6 +89,8 @@ static NTSTATUS NTAPI StreamSocketConnectComplete
|
|||
AFD_DbgPrint(MID_TRACE,("Irp->IoStatus.Status = %x\n",
|
||||
Irp->IoStatus.Status));
|
||||
|
||||
FCB->ConnectIrp.InFlightRequest = NULL;
|
||||
|
||||
if( NT_SUCCESS(Irp->IoStatus.Status) ) {
|
||||
FCB->PollState |= AFD_EVENT_CONNECT | AFD_EVENT_SEND;
|
||||
AFD_DbgPrint(MID_TRACE,("Going to connected state %d\n", FCB->State));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue