mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 14:23:23 +00:00
dont leave UDP-LISTEN socket open after reject
This commit is contained in:
parent
a1c0e96592
commit
e142c3da6b
4 changed files with 61 additions and 3 deletions
|
@ -231,6 +231,7 @@ int xioopen_ipdgram_listen(int argc, const char *argv[], struct opt *opts,
|
|||
/* drop packet */
|
||||
char buff[512];
|
||||
Recv(fd->stream.fd, buff, sizeof(buff), 0);
|
||||
Close(fd->stream.fd);
|
||||
continue;
|
||||
}
|
||||
Info1("permitting UDP connection from %s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue