Author: tfaber
Date: Mon Dec 7 08:48:57 2015
New Revision: 70284
URL:
http://svn.reactos.org/svn/reactos?rev=70284&view=rev
Log:
[NDIS]
- Avoid using an out-of-scope local variable in NdisReadNetworkAddress. Patch by Víctor
Martínez.
CORE-10650 #resolve
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] Mon Dec 7 08:48:57
2015
@@ -761,6 +761,7 @@
NDIS_STRING Keyword;
UINT *IntArray = 0;
UINT i,j = 0;
+ WCHAR Buff[11];
NDIS_STRING str;
NdisInitUnicodeString(&Keyword, L"NetworkAddress");
@@ -774,8 +775,6 @@
if (ParameterValue->ParameterType == NdisParameterInteger)
{
- WCHAR Buff[11];
-
NDIS_DbgPrint(MAX_TRACE, ("Read integer data %lx\n",
ParameterValue->ParameterData.IntegerData));