From: Ben Laurie Date: Mon, 29 Dec 2008 16:13:49 +0000 (+0000) Subject: Apparently s->ctx could be NULL at this point (see earlier X-Git-Tag: OpenSSL_0_9_8k^2~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=121f9e743cb35cd261c839ecd9c420777a48968b;p=oweals%2Fopenssl.git Apparently s->ctx could be NULL at this point (see earlier test). (Coverity ID 148). --- 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