diff options
-rw-r--r-- | nss_engine_kernel.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nss_engine_kernel.c b/nss_engine_kernel.c index 6a73007..0e5b8ad 100644 --- a/nss_engine_kernel.c +++ b/nss_engine_kernel.c @@ -126,11 +126,14 @@ int nss_hook_Access(request_rec *r) } /* - * 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. * |