diff options
author | Matt Caswell <matt@openssl.org> | 2014-12-03 11:15:40 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-15 21:27:19 +0000 |
commit | 9beb948c0dae6056caddf46a9aa099e18905d184 (patch) | |
tree | 386b2999966123b040f38d345fcfda8469fd2d06 /ssl/d1_clnt.c | |
parent | ce5ddefc4394a0ae6c79efaffe08cf47ac659ea0 (diff) |
Checkout return value of dtls1_output_cert_chain
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r-- | ssl/d1_clnt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index 9947be22ff..9045fb9902 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -1717,6 +1717,12 @@ int dtls1_send_client_certificate(SSL *s) s->state=SSL3_ST_CW_CERT_D; l=dtls1_output_cert_chain(s, (s->s3->tmp.cert_req == 2)?NULL:s->cert->key->x509); + if (!l) + { + SSLerr(SSL_F_DTLS1_SEND_CLIENT_CERTIFICATE, ERR_R_INTERNAL_ERROR); + ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_INTERNAL_ERROR); + return 0; + } s->init_num=(int)l; s->init_off=0; |