summaryrefslogtreecommitdiffstats
path: root/ssl/s3_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-03-18 14:19:22 +0000
committerMatt Caswell <matt@openssl.org>2014-12-16 15:01:29 +0000
commitc8667a2e462c3e9e2c4fe1dc170b9b157d9ba938 (patch)
tree75471657087e6c77acda4820a6e10e31f563966e /ssl/s3_srvr.c
parent5ee441162e3a5a236429f43d5c352beb5eb29cc3 (diff)
Check return value of ssl3_output_cert_chain
(cherry picked from commit 66f96fe2d519147097c118d4bf60704c69ed0635) Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r--ssl/s3_srvr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index a4342ba83f..83d110fcc7 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -3450,7 +3450,11 @@ int ssl3_send_server_certificate(SSL *s)
}
}
- ssl3_output_cert_chain(s,cpk);
+ if (!ssl3_output_cert_chain(s,cpk))
+ {
+ SSLerr(SSL_F_SSL3_SEND_SERVER_CERTIFICATE,ERR_R_INTERNAL_ERROR);
+ return(0);
+ }
s->state=SSL3_ST_SW_CERT_B;
}