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/net…
==============================================================================
--- 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 );
}