Also make sure to close the socket that exceeds your rate limit.

This commit is contained in:
Brian Feldman 2000-06-26 23:39:26 +00:00
parent e1e1452d61
commit c342fc930b

View File

@ -868,6 +868,7 @@ main(int ac, char **av)
options.connections_period, myaddr, options.connections_period, myaddr,
get_sock_port(newsock, 1), ntop); get_sock_port(newsock, 1), ntop);
free((void *)myaddr); free((void *)myaddr);
close(newsock);
ratelim_exceeded = 0; ratelim_exceeded = 0;
continue; continue;
} else { } else {