ip/ipconfig: don't null terminate the dhcp string options.

this seems to be an anachronism; few modern clients put the null in and RFC 2132 says clients 'SHOULD NOT' null terminate
This commit is contained in:
aiju 2017-02-19 22:53:10 +00:00
parent 64f5e1ddd4
commit 55373a6498

View file

@ -1404,7 +1404,7 @@ optaddstr(uchar *p, int op, char *v)
{
int n;
n = strlen(v)+1; /* microsoft leaves on the NUL, so we do too */
n = strlen(v);
p[0] = op;
p[1] = n;
memmove(p+2, v, n);