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