socksd: close inside udp server one we get a connection (udprelay)
This commit is contained in:
parent
81ea3f24fa
commit
82cec6f585
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue