From 09e24d546996578bb7d7bfa5b45d5032a8e0fc8f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 22 May 2012 15:38:12 -0700 Subject: [PATCH] OCSP set option bug fix --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 143c413da..5a0081d0e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -7701,8 +7701,8 @@ long CyaSSL_CTX_OCSP_set_options(CYASSL_CTX* ctx, long options) { CYASSL_ENTER("CyaSSL_CTX_OCSP_set_options"); if (ctx != NULL) { - ctx->ocsp.enabled = (options && CYASSL_OCSP_ENABLE) != 0; - ctx->ocsp.useOverrideUrl = (options && CYASSL_OCSP_URL_OVERRIDE) != 0; + ctx->ocsp.enabled = (options & CYASSL_OCSP_ENABLE) != 0; + ctx->ocsp.useOverrideUrl = (options & CYASSL_OCSP_URL_OVERRIDE) != 0; return 1; } return 0;