Author: cgutman
Date: Fri Nov 28 21:47:58 2008
New Revision: 37715
URL:
http://svn.reactos.org/svn/reactos?rev=37715&view=rev
Log:
- Make sure we're in the correct state
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/connect.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/connect.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/connect.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/connect.c [iso-8859-1] Fri Nov 28
21:47:58 2008
@@ -114,7 +114,7 @@
IoCompleteRequest( NextIrp, IO_NETWORK_INCREMENT );
}
- if( NT_SUCCESS(Status) ) {
+ if( NT_SUCCESS(Status) && FCB->State == SOCKET_STATE_CONNECTED ) {
Status = MakeSocketIntoConnection( FCB );
if( !NT_SUCCESS(Status) ) {