git: 9front

Download patch

ref: 7b161d13136c016d4afb90e31566aa801f17fc9e
parent: 0db4aa6cdc8aea1af14a0508e4eb05a918590c32
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);
--