1
0
Fork 0
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:
Gerhard Rieger 2008-09-04 23:30:59 +02:00
parent a1c0e96592
commit e142c3da6b
4 changed files with 61 additions and 3 deletions

View file

@ -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",