Author: mjmartin
Date: Sun Dec 21 10:36:03 2008
New Revision: 38233
URL:
http://svn.reactos.org/svn/reactos?rev=38233&view=rev
Log:
- Preform the if (!Adapter) check before setting adapter to 0. Fixes Debug message
reporting that the adapter was rejected.
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] Sun Dec 21 10:36:03 2008
@@ -288,12 +288,14 @@
Adapter->DhclientInfo.next = ifi;
ifi = &Adapter->DhclientInfo;
InsertTailList( &AdapterList, &Adapter->ListEntry );
- } else { free( Adapter ); Adapter = 0; }
- } else { free( Adapter ); Adapter = 0; }
+ }
+ }
if( !Adapter )
DH_DbgPrint(MID_TRACE,("Adapter %d was rejected\n",
Table->table[i].dwIndex));
+ free( Adapter );
+ Adapter = 0;
}
DH_DbgPrint(MID_TRACE,("done with AdapterInit\n"));