diff options
author | Matt Caswell <matt@openssl.org> | 2014-11-18 12:56:26 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-11-27 21:39:47 +0000 |
commit | fe78f08d1541211566a5656395186bfbdc61b6f8 (patch) | |
tree | aba6eb9f747e25ecbbe344de92db8ffaf4b53d0e /ssl/d1_pkt.c | |
parent | fc3968a25ce0c16cab8730ec0d68a59856158029 (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_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index ed246a0078..2952bccc5e 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -1632,7 +1632,7 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, if (eivlen) wr->length += eivlen; - s->method->ssl3_enc->enc(s,1); + if(s->method->ssl3_enc->enc(s,1) < 1) goto err; /* record length after mac and block padding */ /* if (type == SSL3_RT_APPLICATION_DATA || |