diff --git a/main.c b/main.c index a089560..3f73e1e 100644 --- a/main.c +++ b/main.c @@ -225,6 +225,7 @@ static int configure_network(const char *tapname, perror("set route"); goto fail; } + close(sockfd); return 0; fail: close(sockfd);