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

- 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
This commit is contained in:
Paul Querna
2005-06-24 07:33:02 +00:00
parent e077e6efc9
commit 363ddf3d10

View 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 = ssl_util_vhostid(p, s);
sc->vhost_id_len = strlen(sc->vhost_id); 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; sc->enabled = SSL_ENABLED_TRUE;
} }