Author: tfaber
Date: Sun Jun 14 07:48:28 2015
New Revision: 68129
URL:
http://svn.reactos.org/svn/reactos?rev=68129&view=rev
Log:
[AFD]
- Fail sends on sockets that are not connected in AfdConnectedSocketWriteData
CORE-9810
Modified:
trunk/reactos/drivers/network/afd/afd/write.c
Modified: trunk/reactos/drivers/network/afd/afd/write.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/wr…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/write.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/write.c [iso-8859-1] Sun Jun 14 07:48:28 2015
@@ -442,15 +442,9 @@
AFD_DbgPrint(MID_TRACE,("Socket state %u\n", FCB->State));
if( FCB->State != SOCKET_STATE_CONNECTED ) {
- if (!(SendReq->AfdFlags & AFD_OVERLAPPED) &&
- ((SendReq->AfdFlags & AFD_IMMEDIATE) || (FCB->NonBlocking))) {
- AFD_DbgPrint(MID_TRACE,("Nonblocking\n"));
- UnlockBuffers( SendReq->BufferArray, SendReq->BufferCount, FALSE );
- return UnlockAndMaybeComplete( FCB, STATUS_CANT_WAIT, Irp, 0 );
- } else {
- AFD_DbgPrint(MID_TRACE,("Queuing request\n"));
- return LeaveIrpUntilLater( FCB, Irp, FUNCTION_SEND );
- }
+ AFD_DbgPrint(MID_TRACE,("Socket not connected\n"));
+ UnlockBuffers( SendReq->BufferArray, SendReq->BufferCount, FALSE );
+ return UnlockAndMaybeComplete( FCB, STATUS_INVALID_CONNECTION, Irp, 0 );
}
AFD_DbgPrint(MID_TRACE,("FCB->Send.BytesUsed = %u\n",