]> granicus.if.org Git - apache/commitdiff
- If the Protocol has not been set, do not crash. Long term, we need to ensure that...
authorPaul Querna <pquerna@apache.org>
Fri, 24 Jun 2005 07:33:02 +0000 (07:33 +0000)
committerPaul Querna <pquerna@apache.org>
Fri, 24 Jun 2005 07:33:02 +0000 (07:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@201576 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 148c07c889b110fb6358b8a6ba535be89e207cae..7252d7cf4d7b7555b80976aec689d9f9ba5d200e 100644 (file)
@@ -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;
         }