Commit 840aaab5 authored by Paul Querna's avatar Paul Querna
Browse files

- If the Protocol has not been set, do not crash. Long term, we need to...

- 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
parent de0e5773
Loading
Loading
Loading
Loading
+2 −1
Changes for modules/ssl/ssl_engine_init.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
        }