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