shithub: riscv

Download patch

ref: 82cec6f585257c2030cc3364e4aee13b1d1c312a
parent: 81ea3f24fa18e3bd313ff6f3b818908cecc98dcd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 14 09:57:05 EST 2014

socksd: close inside udp server one we get a connection (udprelay)

--- a/sys/src/cmd/ip/socksd.c
+++ b/sys/src/cmd/ip/socksd.c
@@ -112,6 +112,7 @@
 
 	if((cfd = listen(dir, ldir)) < 0)
 		return -1;
+	close(fd);	/* close inside udp server */
 	if((fd = accept(cfd, ldir)) < 0)
 		return -1;