Properly check for domain name being set

CID 1401080

svn path=/trunk/; revision=73837
This commit is contained in:
Pierre Schweitzer 2017-02-19 11:34:00 +00:00
parent 3a8d6379b1
commit c7a2132d63

View file

@ -346,7 +346,7 @@ CheckForCurrentHostname(CONST CHAR * Name, PFIXED_INFO network_info)
PIP_ADAPTER_ADDRESSES Addresses = NULL, pip;
BOOL Found = FALSE;
if (network_info->DomainName)
if (network_info->DomainName[0])
{
size_t StringLength;
size_t TempSize = 2;