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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user