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

This commit is contained in:
cinap_lenrek 2014-02-14 14:57:05 +01:00
parent 81ea3f24fa
commit 82cec6f585

View file

@ -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;