diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-26 14:55:18 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-04 18:16:56 +0200 |
commit | 8b25b0eb991bf70123bedc4c4c4e0215dd8bd926 (patch) | |
tree | 053a910c0d04400d9dab0392f09b923c2d151f7c /crypto/store | |
parent | d9efb24de8765ddc921b8e304372e8e33d4d65f4 (diff) |
BIO_eof() and OSSL_STORE_eof(): Make sure to return 1 on error; improve related doc
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15029)
Diffstat (limited to 'crypto/store')
-rw-r--r-- | crypto/store/store_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/store/store_lib.c b/crypto/store/store_lib.c index 2c7c9f3226..e7f5860604 100644 --- a/crypto/store/store_lib.c +++ b/crypto/store/store_lib.c @@ -463,7 +463,7 @@ int OSSL_STORE_eof(OSSL_STORE_CTX *ctx) if (ctx->fetched_loader == NULL) ret = ctx->loader->eof(ctx->loader_ctx); #endif - return ret; + return ret != 0; } static int ossl_store_close_it(OSSL_STORE_CTX *ctx) |