summaryrefslogtreecommitdiff
path: root/main/openssl/ssl/d1_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssl/ssl/d1_enc.c')
-rw-r--r--main/openssl/ssl/d1_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/openssl/ssl/d1_enc.c b/main/openssl/ssl/d1_enc.c
index 712c4647..3da2b4c8 100644
--- a/main/openssl/ssl/d1_enc.c
+++ b/main/openssl/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
{