Fixes a problem reported by WaxDragon when acquiring the nameserver address

from DHCP.  This needs to be rechecked but seems harmless.

svn path=/trunk/; revision=14759
This commit is contained in:
Art Yerkes 2005-04-23 05:43:35 +00:00
parent 98f1613a52
commit 45ae6da0c6

View file

@ -465,9 +465,14 @@ void set_name_servers( struct client_lease *new_lease ) {
}
DH_DbgPrint(MID_TRACE,("Setting Nameservers: %s\n", nsbuf));
/* XXX Fixme: I think this may be wrong and that we might have
* a problem somewhere else (in iphlpapi for example).
*
* Recheck the +1 below.
*/
RegSetValueEx( RegKey, "NameServer", 0, REG_SZ,
nsbuf, strlen(nsbuf) );
nsbuf, strlen(nsbuf) + 1 );
free( nsbuf );
}