You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/06/24 09:33:02 UTC

svn commit: r201576 - /httpd/httpd/trunk/modules/ssl/ssl_engine_init.c

Author: pquerna
Date: Fri Jun 24 00:33:02 2005
New Revision: 201576

URL: http://svn.apache.org/viewcvs?rev=201576&view=rev
Log:
- 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.

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_engine_init.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_init.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ssl/ssl_engine_init.c?rev=201576&r1=201575&r2=201576&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_init.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_init.c Fri Jun 24 00:33:02 2005
@@ -207,7 +207,8 @@
         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;
         }