Author: janderwald
Date: Thu Sep 24 22:32:31 2009
New Revision: 43139
URL:
http://svn.reactos.org/svn/reactos?rev=43139&view=rev
Log:
- Fix derefercing of null pointer
- Brought to you by Amine Khaldi (amine48rz)
Modified:
trunk/reactos/base/services/dhcp/dhclient.c
Modified: trunk/reactos/base/services/dhcp/dhclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/dhclien…
==============================================================================
--- trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/dhcp/dhclient.c [iso-8859-1] Thu Sep 24 22:32:31 2009
@@ -581,8 +581,10 @@
Adapter = AdapterFindInfo( ip );
if( Adapter ) setup_adapter( Adapter, new_lease );
- else warning("Could not find adapter for info %p\n", ip);
-
+ else {
+ warning("Could not find adapter for info %p\n", ip);
+ return;
+ }
set_name_servers( Adapter, new_lease );
}