From: Paul Querna Date: Fri, 24 Jun 2005 07:33:02 +0000 (+0000) Subject: - If the Protocol has not been set, do not crash. Long term, we need to ensure that... X-Git-Tag: 2.1.6~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=363ddf3d1009e982968e48bc7369f31f26a5a768;p=apache - If the Protocol has not been set, do not crash. Long term, we need to ensure that the protocol is set in all cases, and in all MPMs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@201576 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 148c07c889..7252d7cf4d 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -207,7 +207,8 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog, sc->vhost_id = ssl_util_vhostid(p, s); sc->vhost_id_len = strlen(sc->vhost_id); - if (strcmp("https", ap_get_server_protocol(s)) == 0) { + if (ap_get_server_protocol(s) && + strcmp("https", ap_get_server_protocol(s)) == 0) { sc->enabled = SSL_ENABLED_TRUE; }