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;