diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-12-14 13:55:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-12-18 13:26:10 +0000 |
commit | 0294b2be5f4c11e60620c0018674ff0e17b14238 (patch) | |
tree | c142a5421d1c829539854d097551bed703cd552e /ssl/s3_both.c | |
parent | f1068a1ab726f477ad57783d0d488d4d55f87ded (diff) |
Check EVP errors for handshake digests.
Partial mitigation of PR#3200
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r-- | ssl/s3_both.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c index ead01c82a1..1e5dcab7d3 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c @@ -161,6 +161,8 @@ int ssl3_send_finished(SSL *s, int a, int b, const char *sender, int slen) i=s->method->ssl3_enc->final_finish_mac(s, sender,slen,s->s3->tmp.finish_md); + if (i == 0) + return 0; s->s3->tmp.finish_md_len = i; memcpy(p, s->s3->tmp.finish_md, i); p+=i; |