ref: 55373a649820a952ca26f5f315a8a2c60997a480
parent: 64f5e1ddd4a4b350a31dc8d035b0b2c98b606fc2
author: aiju <devnull@localhost>
date: Sun Feb 19 17:53:10 EST 2017
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
--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -1404,7 +1404,7 @@
{
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);