26c8e2
diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
26c8e2
index a5e86e4..6611610 100644
26c8e2
--- a/modules/ssl/ssl_engine_kernel.c
26c8e2
+++ b/modules/ssl/ssl_engine_kernel.c
26c8e2
@@ -1823,8 +1823,8 @@ int ssl_callback_SSLVerify(int ok, X509_STORE_CTX *ctx)
26c8e2
     /*
26c8e2
      * Perform OCSP-based revocation checks
26c8e2
      */
26c8e2
-    if (ok && ((sc->server->ocsp_mask & SSL_OCSPCHECK_CHAIN) ||
26c8e2
-         (errdepth == 0 && (sc->server->ocsp_mask & SSL_OCSPCHECK_LEAF)))) {     
26c8e2
+    if (ok && ((mctx->ocsp_mask & SSL_OCSPCHECK_CHAIN) ||
26c8e2
+         (errdepth == 0 && (mctx->ocsp_mask & SSL_OCSPCHECK_LEAF)))) {     
26c8e2
         /* If there was an optional verification error, it's not
26c8e2
          * possible to perform OCSP validation since the issuer may be
26c8e2
          * missing/untrusted.  Fail in that case. */