[ros-diffs] [cgutman] 37350: - Fail if we aren't in the right state

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Nov 14 03:43:37 CET 2008


Author: cgutman
Date: Thu Nov 13 20:43:36 2008
New Revision: 37350

URL: http://svn.reactos.org/svn/reactos?rev=37350&view=rev
Log:
 - Fail if we aren't in the right state

Modified:
    branches/aicom-network-fixes/drivers/network/afd/afd/info.c

Modified: branches/aicom-network-fixes/drivers/network/afd/afd/info.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/afd/afd/info.c?rev=37350&r1=37349&r2=37350&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/info.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/info.c [iso-8859-1] Thu Nov 13 20:43:36 2008
@@ -110,7 +110,7 @@
                       TDI_QUERY_ADDRESS_INFO,
                       Mdl );
             } else {
-                if( FCB->Connection.Object == NULL ) {
+                if( FCB->Connection.Object == NULL || (FCB->State != SOCKET_STATE_BOUND && FCB->State != SOCKET_STATE_CONNECTED) ) {
 	            return UnlockAndMaybeComplete( FCB, STATUS_INVALID_PARAMETER, Irp, 0,
 	                                           NULL );
                 }



More information about the Ros-diffs mailing list