diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libtls/tls_ocsp.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c index 9f6f940ecf..4e2dba3487 100644 --- a/src/lib/libtls/tls_ocsp.c +++ b/src/lib/libtls/tls_ocsp.c | |||
@@ -315,12 +315,13 @@ tls_ocsp_verify_cb(SSL *ssl, void *arg) | |||
315 | } | 315 | } |
316 | 316 | ||
317 | tls_ocsp_free(ctx->ocsp); | 317 | tls_ocsp_free(ctx->ocsp); |
318 | ctx->ocsp = tls_ocsp_setup_from_peer(ctx); | 318 | if ((ctx->ocsp = tls_ocsp_setup_from_peer(ctx)) == NULL) |
319 | if (ctx->ocsp != NULL) { | 319 | return 0; |
320 | if (ctx->config->verify_cert == 0 || ctx->config->verify_time == 0) | 320 | |
321 | return 1; | 321 | if (ctx->config->verify_cert == 0 || ctx->config->verify_time == 0) |
322 | res = tls_ocsp_process_response_internal(ctx, raw, size); | 322 | return 1; |
323 | } | 323 | |
324 | res = tls_ocsp_process_response_internal(ctx, raw, size); | ||
324 | 325 | ||
325 | return (res == 0) ? 1 : 0; | 326 | return (res == 0) ? 1 : 0; |
326 | } | 327 | } |