[Fedora-directory-commits] mod_nss nss_engine_kernel.c,1.8,1.9

Robert Crittenden (rcritten) fedora-directory-commits at redhat.com
Wed Aug 9 20:32:50 UTC 2006


Author: rcritten

Update of /cvs/dirsec/mod_nss
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1959

Modified Files:
	nss_engine_kernel.c 
Log Message:
Merge in http://svn.apache.org/viewvc?view=rev&revision=354394

* nss_engine_kernel.c (nss_hook_Access): Omit further access control
  checks if SSL is not in use regardless of vhost settings.



Index: nss_engine_kernel.c
===================================================================
RCS file: /cvs/dirsec/mod_nss/nss_engine_kernel.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- nss_engine_kernel.c	9 Aug 2006 20:11:45 -0000	1.8
+++ nss_engine_kernel.c	9 Aug 2006 20:32:47 -0000	1.9
@@ -126,11 +126,14 @@
     }
 
     /*
-     * Check to see if SSL protocol is on
+     * Check to see if SSL protocol is enabled. If it's not then
+     * no further access control checks are relevant. The test for
+     * sc->enabled is probably strictly unnecessary
      */
-    if (!(sc->enabled || ssl)) {
+    if (!(sc->enabled || !ssl)) {
         return DECLINED;
     }
+
     /*
      * Support for per-directory reconfigured SSL connection parameters.
      * 




More information about the Fedora-directory-commits mailing list