From: Doug MacEachern Date: Fri, 17 May 2002 18:21:12 +0000 (+0000) Subject: prevent possible segv in ssl_init_CheckServers if s->addrs is NULL. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929b1ed2ca872629b643bd2042730acda6d6609c;p=thirdparty%2Fapache%2Fhttpd.git prevent possible segv in ssl_init_CheckServers if s->addrs is NULL. for example: , for which the core only spits out a warning: Name or service not known: Cannot resolve host name *: --- ignoring! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@95158 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_init.c b/ssl_engine_init.c index b0c5be361e7..8161ef5eb41 100644 --- a/ssl_engine_init.c +++ b/ssl_engine_init.c @@ -1028,7 +1028,7 @@ void ssl_init_CheckServers(server_rec *base_server, apr_pool_t *p) for (s = base_server; s; s = s->next) { sc = mySrvConfig(s); - if (!sc->enabled) { + if (!(sc->enabled && s->addrs)) { continue; }