From 55373a649820a952ca26f5f315a8a2c60997a480 Mon Sep 17 00:00:00 2001 From: aiju Date: Sun, 19 Feb 2017 22:53:10 +0000 Subject: 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 --- sys/src/cmd/ip/ipconfig/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/ip/ipconfig/main.c b/sys/src/cmd/ip/ipconfig/main.c index 06a9bfee0..a0d88031b 100644 --- a/sys/src/cmd/ip/ipconfig/main.c +++ b/sys/src/cmd/ip/ipconfig/main.c @@ -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); -- cgit v1.2.3