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 c1d4173b5e89207707c6181e821c6e4907ae1b18..7c2eb027eb6d0e43ae330c26e82bd2683de9b978 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