Add a bit of defensive programming

svn path=/trunk/; revision=19283
This commit is contained in:
Gé van Geldorp 2005-11-16 21:44:26 +00:00
parent ac2efcf7dc
commit 1c04a022f2

View file

@ -125,6 +125,7 @@ HKEY FindAdapterKey( PDHCP_ADAPTER Adapter ) {
( EnumKey, EnumKeysTop[i], "DriverDesc" );
if( DriverDesc &&
RootDevice &&
!strcmp( DriverDesc, Adapter->DhclientInfo.name ) ) {
TargetKeyName =
malloc( strlen( TargetKeyNameStart ) +