diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-07-26 16:51:49 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-07-26 16:51:49 +0100 |
commit | ee6ce5cc368574c0b0b470e61ee2f82a0efadbb7 (patch) | |
tree | f215115a21400d689b4bb4c72f6156603ae12c4c /crypto/evp/bio_enc.c | |
parent | ba1a1c3783bec68830da3a375b581afc73226ff4 (diff) | |
download | openssl-new-ee6ce5cc368574c0b0b470e61ee2f82a0efadbb7.tar.gz |
Set error if EVP_CipherUpdate fails.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp/bio_enc.c')
-rw-r--r-- | crypto/evp/bio_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index 5a4d9c5d87..d1422f03bf 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -163,6 +163,7 @@ static int enc_read(BIO *b, char *out, int outl) (unsigned char *)&(ctx->buf[BUF_OFFSET]), i)) { BIO_clear_retry_flags(b); + ctx->ok = 0; return 0; } ctx->cont = 1; |