Author: cgutman Date: Tue Jul 7 08:40:54 2009 New Revision: 41795
URL: http://svn.reactos.org/svn/reactos?rev=41795&view=rev Log: - Set Size to the size of the buffer we allocated (it previously had stack garbage in it which prevented proper buffer sizing) - Fixes a buffer overwrite - Multiple NIC support is here! (DHCP currently doesn't work for multiple NICs so a static IP address is needed for now)
Modified: trunk/reactos/base/services/dhcp/adapter.c
Modified: trunk/reactos/base/services/dhcp/adapter.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/adapter.... ============================================================================== --- trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] (original) +++ trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] Tue Jul 7 08:40:54 2009 @@ -212,7 +212,7 @@
void AdapterInit() { PMIB_IFTABLE Table = (PMIB_IFTABLE) malloc(sizeof(MIB_IFTABLE)); - DWORD Error, Size, i; + DWORD Error, Size = sizeof(MIB_IFTABLE), i; PDHCP_ADAPTER Adapter = NULL; struct interface_info *ifi = NULL;