Author: khornicek Date: Mon Oct 20 12:06:13 2008 New Revision: 36849
URL: http://svn.reactos.org/svn/reactos?rev=36849&view=rev Log: don't deref. null pointer in case NameServer key doesn't exist
Modified: trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c
Modified: trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/resinfo_... ============================================================================== --- trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/iphlpapi/resinfo_reactos.c [iso-8859-1] Mon Oct 20 12:06:13 2008 @@ -229,7 +229,7 @@ Str = QueryRegistryValueString( hKey, L"NameServer" );
/* If NameServer is empty */ - if (*Str == L'\0') + if (!Str || *Str == L'\0') { /* Then use DhcpNameServer */ Str = QueryRegistryValueString( hKey, L"DhcpNameServer" );