From: Juho Vähä-Herttua Date: Tue, 15 May 2012 20:11:52 +0000 (+0300) Subject: Do not check for httpd->server_fd6 if it is not initialized X-Git-Tag: upstream/0.9.0~4^2~68 X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=commitdiff_plain;h=2e66aa96aa9068a75c6524796d9fb8392a2e27ba Do not check for httpd->server_fd6 if it is not initialized --- 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;