diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/blogc-runserver/httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c index 4afb2b8..1c20d43 100644 --- a/src/blogc-runserver/httpd.c +++ b/src/blogc-runserver/httpd.c @@ -272,6 +272,7 @@ br_httpd_run(const char *host, const char *port, const char *docroot, } int value = 1; if (0 > setsockopt(server_socket, SOL_SOCKET, SO_REUSEADDR, &value, sizeof(int))) { + close(server_socket); continue; } if (0 == bind(server_socket, rp->ai_addr, rp->ai_addrlen)) { |