summaryrefslogtreecommitdiffstats
path: root/ssl/d1_enc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-11-18 12:56:26 +0000
committerMatt Caswell <matt@openssl.org>2014-11-27 21:53:02 +0000
commit244d0955adc027c0f41a3251e55d145bf940f9ce (patch)
tree63651fb25221470b925809bc66b1faa6881bc8b4 /ssl/d1_enc.c
parent061e68c554a29ea30152d1c34e96abeca2f9652c (diff)
Add checks to the return value of EVP_Cipher to prevent silent encryption failure.
PR#1767 Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/d1_enc.c')
-rw-r--r--ssl/d1_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/d1_enc.c b/ssl/d1_enc.c
index 712c4647f2..3da2b4c8c2 100644
--- a/ssl/d1_enc.c
+++ b/ssl/d1_enc.c
@@ -241,7 +241,8 @@ int dtls1_enc(SSL *s, int send)
return 0;
}
- EVP_Cipher(ds,rec->data,rec->input,l);
+ if(EVP_Cipher(ds,rec->data,rec->input,l) < 1)
+ return -1;
#ifdef KSSL_DEBUG
{