summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2008-12-29 16:15:27 +0000
committerBen Laurie <ben@openssl.org>2008-12-29 16:15:27 +0000
commit2bd45dc94ca4105154a06194e8388b2740892bc4 (patch)
tree3059314ed464a15dacb5b960abf9d22d5f623fbe /ssl
parent121f9e743cb35cd261c839ecd9c420777a48968b (diff)
Apparently s->ctx could be NULL. (Coverity ID 147).
Diffstat (limited to 'ssl')
-rw-r--r--ssl/t1_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 7c2eb027eb..3c6907f608 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -1197,7 +1197,7 @@ int ssl_check_clienthello_tlsext(SSL *s)
* Note: this must be called after servername callbacks in case
* 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;
r = s->ctx->tlsext_status_cb(s, s->ctx->tlsext_status_arg);