Apparently s->ctx could be NULL. (Coverity ID 147).
This commit is contained in:
parent
121f9e743c
commit
2bd45dc94c
@ -1197,7 +1197,7 @@ int ssl_check_clienthello_tlsext(SSL *s)
|
|||||||
* Note: this must be called after servername callbacks in case
|
* Note: this must be called after servername callbacks in case
|
||||||
* the certificate has changed.
|
* the certificate has changed.
|
||||||
*/
|
*/
|
||||||
if ((s->tlsext_status_type != -1) && s->ctx->tlsext_status_cb)
|
if ((s->tlsext_status_type != -1) && s->ctx && s->ctx->tlsext_status_cb)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
r = s->ctx->tlsext_status_cb(s, s->ctx->tlsext_status_arg);
|
r = s->ctx->tlsext_status_cb(s, s->ctx->tlsext_status_arg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user