Apparently s->ctx could be NULL at this point (see earlier

test). (Coverity ID 148).
This commit is contained in:
Ben Laurie 2008-12-29 16:13:49 +00:00
parent 0eab41fb78
commit 121f9e743c

View 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