]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/store/store_lib.c
BIO_eof() and OSSL_STORE_eof(): Make sure to return 1 on error; improve related doc
[thirdparty/openssl.git] / crypto / store / store_lib.c
index 2c7c9f32267411013f4b08ba21af109832a1a499..e7f586060421004f1fe196f18be945c1139c42a8 100644 (file)
@@ -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)