From 2e66aa96aa9068a75c6524796d9fb8392a2e27ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juho=20V=C3=A4h=C3=A4-Herttua?= Date: Tue, 15 May 2012 23:11:52 +0300 Subject: [PATCH] Do not check for httpd->server_fd6 if it is not initialized --- src/lib/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/httpd.c b/src/lib/httpd.c index 7606933..88971fa 100644 --- a/src/lib/httpd.c +++ b/src/lib/httpd.c @@ -240,7 +240,7 @@ httpd_thread(void *arg) continue; } } - if (FD_ISSET(httpd->server_fd6, &rfds)) { + if (httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { ret = httpd_accept_connection(httpd, httpd->server_fd6, 1); if (ret == -1) { break; -- 2.34.1