1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

prevent possible segv in ssl_init_CheckServers if s->addrs is NULL.

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
This commit is contained in:
Doug MacEachern
2002-05-17 18:21:12 +00:00
parent 247125eecb
commit d9e9c7de3b

View 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) { for (s = base_server; s; s = s->next) {
sc = mySrvConfig(s); sc = mySrvConfig(s);
if (!sc->enabled) { if (!(sc->enabled && s->addrs)) {
continue; continue;
} }