diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/netutils/webserver/httpd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/netutils/webserver/httpd.c b/apps/netutils/webserver/httpd.c index 67d2f4bc7..05bf50a1b 100644 --- a/apps/netutils/webserver/httpd.c +++ b/apps/netutils/webserver/httpd.c @@ -816,7 +816,7 @@ static void single_server(uint16_t portno, pthread_startroutine_t handler, int s if (acceptsd < 0) { ndbg("accept failure: %d\n", errno); - break;; + break; } nvdbg("Connection accepted -- serving sd=%d\n", acceptsd); @@ -851,6 +851,11 @@ static void single_server(uint16_t portno, pthread_startroutine_t handler, int s (void)httpd_handler((void*)acceptsd); } + + /* Close the sockets */ + + close(acceptsd); + close(listensd); } #endif |