Fixes a problem reported by WaxDragon when acquiring the nameserver address from DHCP. This needs to be rechecked but seems harmless. Modified: trunk/reactos/subsys/system/dhcp/dhclient.c _____
Modified: trunk/reactos/subsys/system/dhcp/dhclient.c --- trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-23 05:00:10 UTC (rev 14758) +++ trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-23 05:43:35 UTC (rev 14759) @@ -465,9 +465,14 @@
}
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 ); }