From 121f9e743cb35cd261c839ecd9c420777a48968b Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 29 Dec 2008 16:13:49 +0000 Subject: [PATCH] Apparently s->ctx could be NULL at this point (see earlier test). (Coverity ID 148). --- 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 c1d4173b5e..7c2eb027eb 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1372,7 +1372,7 @@ int ssl_check_serverhello_tlsext(SSL *s) * tell the callback */ if ((s->tlsext_status_type != -1) && !(s->tlsext_status_expected) - && s->ctx->tlsext_status_cb) + && s->ctx && s->ctx->tlsext_status_cb) { int r; /* Set resp to NULL, resplen to -1 so callback knows -- 2.25.1