diff --git a/discardd.c b/discardd.c index fd2d51e..9d83c6e 100644 --- a/discardd.c +++ b/discardd.c @@ -97,8 +97,12 @@ handle_tcp(const char *port) { int s[8]; size_t nsocks = nelems(s); + size_t i; listen_sock_setup(port, SOCK_STREAM, s, &nsocks); + + for (i = 0; i < nsocks; i++) + close(s[i]); } static void