Author: cgutman
Date: Fri Mar 13 02:23:57 2009
New Revision: 39994
URL:
http://svn.reactos.org/svn/reactos?rev=39994&view=rev
Log:
- Add a check for an empty NetworkAddress registry entry
Modified:
branches/aicom-network-fixes/drivers/network/ndis/ndis/config.c
Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/config.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/ndis/ndis/config.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/ndis/ndis/config.c [iso-8859-1] Fri Mar
13 02:23:57 2009
@@ -713,6 +713,13 @@
*NetworkAddressLength = (UINT)((j/2)+0.5);
+ if (j == 0)
+ {
+ NDIS_DbgPrint(MIN_TRACE,("Empty NetworkAddress registry entry.\n"));
+ *Status = NDIS_STATUS_FAILURE;
+ return;
+ }
+
IntArray = ExAllocatePool(PagedPool, (*NetworkAddressLength)*sizeof(UINT));
if(!IntArray)
{