]> granicus.if.org Git - apache/commitdiff
prevent possible segv in ssl_init_CheckServers if s->addrs is NULL.
authorDoug MacEachern <dougm@apache.org>
Fri, 17 May 2002 18:21:12 +0000 (18:21 +0000)
committerDoug MacEachern <dougm@apache.org>
Fri, 17 May 2002 18:21:12 +0000 (18:21 +0000)
for example: <VirtualHost *:>, 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@95158 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index b0c5be361e7e6b6dc7cfe3d5577790e6eaeebb2d..8161ef5eb418a4ebae24a0b42fc7b054d8cf23f3 100644 (file)
@@ -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;
         }