VirtualBox

Changeset 106150 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 25, 2024 4:45:59 PM (2 months ago)
Author:
vboxsync
Message:

Devices/Network: Fix windows dhcp error when hostname update is empty string. bugref:10268

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNATlibslirp.cpp

    r106129 r106150  
    10531053    AssertReturnVoid(pNATState->pSlirp);
    10541054
    1055     slirp_set_vdomainname(pNATState->pSlirp, pDnsConf->szDomainName);
     1055    if (pDnsConf->szDomainName[0] == '\0')
     1056        slirp_set_vdomainname(pNATState->pSlirp, NULL);
     1057    else
     1058        slirp_set_vdomainname(pNATState->pSlirp, pDnsConf->szDomainName);
     1059
    10561060    slirp_set_vdnssearch(pNATState->pSlirp, pDnsConf->papszSearchDomains);
    10571061    /** @todo Convert the papszNameServers entries to IP address and tell about
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette