mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +00:00
- Fix derefercing of null pointer
- Brought to you by Amine Khaldi (amine48rz) svn path=/trunk/; revision=43139
This commit is contained in:
parent
0cb3d8ff11
commit
d3716d892e
|
@ -581,8 +581,10 @@ bind_lease(struct interface_info *ip)
|
||||||
Adapter = AdapterFindInfo( ip );
|
Adapter = AdapterFindInfo( ip );
|
||||||
|
|
||||||
if( Adapter ) setup_adapter( Adapter, new_lease );
|
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 );
|
set_name_servers( Adapter, new_lease );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue