From 2bd45dc94ca4105154a06194e8388b2740892bc4 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 29 Dec 2008 16:15:27 +0000 Subject: [PATCH] Apparently s->ctx could be NULL. (Coverity ID 147). --- ssl/t1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 7c2eb027eb..3c6907f608 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1197,7 +1197,7 @@ int ssl_check_clienthello_tlsext(SSL *s) * Note: this must be called after servername callbacks in case * the certificate has changed. */ - if ((s->tlsext_status_type != -1) && s->ctx->tlsext_status_cb) + if ((s->tlsext_status_type != -1) && s->ctx && s->ctx->tlsext_status_cb) { int r; r = s->ctx->tlsext_status_cb(s, s->ctx->tlsext_status_arg); -- 2.34.1