summaryrefslogtreecommitdiffstats
path: root/ssl/s3_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-12-14 13:55:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-12-18 13:26:10 +0000
commit0294b2be5f4c11e60620c0018674ff0e17b14238 (patch)
treec142a5421d1c829539854d097551bed703cd552e /ssl/s3_both.c
parentf1068a1ab726f477ad57783d0d488d4d55f87ded (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.c2
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;