Author: cgutman
Date: Fri May 1 23:36:55 2009
New Revision: 40764
URL:
http://svn.reactos.org/svn/reactos?rev=40764&view=rev
Log:
- Check for invalid ConfigurationContext
- Patch by Daniel Zimmermann with a slight modification by me
Modified:
trunk/reactos/drivers/network/ndis/ndis/config.c
Modified: trunk/reactos/drivers/network/ndis/ndis/config.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] Fri May 1 23:36:55
2009
@@ -337,6 +337,12 @@
NDIS_DbgPrint(MAX_TRACE,("requested read of %wZ\n", Keyword));
+ if (ConfigurationContext == NULL)
+ {
+ NDIS_DbgPrint(MID_TRACE,("invalid parameter ConfigurationContext
(0x%x)\n",ConfigurationContext));
+ return;
+ }
+
if(
!wcsncmp(Keyword->Buffer, L"Environment",
Keyword->Length/sizeof(WCHAR)) &&
wcslen(L"Environment") == Keyword->Length/sizeof(WCHAR)
@@ -907,4 +913,3 @@
*Status = NDIS_STATUS_SUCCESS;
}
-