summaryrefslogtreecommitdiff
path: root/ssl/s3_both.c
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2015-08-31 16:19:30 +0900
committerKyungwook Tak <k.tak@samsung.com>2015-08-31 16:21:32 +0900
commitca2b56e2594c5e549d1c5c2e0ea625770f59bb75 (patch)
tree7712fcee7b020d7ebc0820aac202f8af2de6a924 /ssl/s3_both.c
parenta23523f545972af9d67393bb41a17e1564e36cd4 (diff)
parent13ea66c69fd44fadc3e1493311a74537b8cb5d7c (diff)
downloadopenssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.tar.gz
openssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.tar.bz2
openssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.zip
Change-Id: I4adbd2d17c72f228aea1396678f1e11a67b63bdc
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r--ssl/s3_both.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c
index 77374f4..107b460 100644
--- a/ssl/s3_both.c
+++ b/ssl/s3_both.c
@@ -169,7 +169,7 @@ 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)
+ if (i <= 0)
return 0;
s->s3->tmp.finish_md_len = i;
memcpy(p, s->s3->tmp.finish_md, i);