httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r201576 - /httpd/httpd/trunk/modules/ssl/ssl_engine_init.c
Date Fri, 24 Jun 2005 07:33:02 GMT
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;
         }
 



Mime
View raw message