aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/d1_enc.c
diff options
context:
space:
mode:
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 712c4647f24c..3da2b4c8c2a7 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
{