diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/echo_srv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c index 70d9a84..537de08 100644 --- a/tests/echo_srv.c +++ b/tests/echo_srv.c @@ -182,6 +182,7 @@ static int setup_srv(struct echo_srv_opts *opts, int *_sock) ret = listen(sock, BACKLOG); if (ret == -1) { ret = errno; + close(sock); perror("listen"); return ret; } |
