Apparently s->ctx could be NULL at this point (see earlier
authorBen Laurie <ben@openssl.org>
Mon, 29 Dec 2008 16:13:49 +0000 (16:13 +0000)
committerBen Laurie <ben@openssl.org>
Mon, 29 Dec 2008 16:13:49 +0000 (16:13 +0000)
test). (Coverity ID 148).

ssl/t1_lib.c

index c1d4173..7c2eb02 100644 (file)
@@ -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