From 82cec6f585257c2030cc3364e4aee13b1d1c312a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 14 Feb 2014 14:57:05 +0100 Subject: [PATCH] socksd: close inside udp server one we get a connection (udprelay) --- sys/src/cmd/ip/socksd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/cmd/ip/socksd.c b/sys/src/cmd/ip/socksd.c index 1542daab3..aad6b5b62 100644 --- a/sys/src/cmd/ip/socksd.c +++ b/sys/src/cmd/ip/socksd.c @@ -112,6 +112,7 @@ udprelay(int fd, char *dir) if((cfd = listen(dir, ldir)) < 0) return -1; + close(fd); /* close inside udp server */ if((fd = accept(cfd, ldir)) < 0) return -1;