You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by do...@apache.org on 2002/05/17 20:21:12 UTC
cvs commit: httpd-2.0/modules/ssl ssl_engine_init.c
dougm 02/05/17 11:21:12
Modified: modules/ssl ssl_engine_init.c
Log:
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!
Revision Changes Path
1.99 +1 -1 httpd-2.0/modules/ssl/ssl_engine_init.c
Index: ssl_engine_init.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_init.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- ssl_engine_init.c 17 May 2002 11:24:17 -0000 1.98
+++ ssl_engine_init.c 17 May 2002 18:21:12 -0000 1.99
@@ -1028,7 +1028,7 @@
for (s = base_server; s; s = s->next) {
sc = mySrvConfig(s);
- if (!sc->enabled) {
+ if (!(sc->enabled && s->addrs)) {
continue;
}