2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Change X509_STORE_up_ref() shim return value

X509_STORE_up_ref() must return 1 on success, while the previous
implementation would return the references count. This commit fixes
that.
This commit is contained in:
Artem Boldariev
2022-04-05 13:33:40 +03:00
parent 0130ff96d5
commit f0ac4c47b0

View File

@@ -174,7 +174,7 @@ OPENSSL_cleanup(void) {
int
X509_STORE_up_ref(X509_STORE *store) {
return (CRYPTO_add(&store->references, 1, CRYPTO_LOCK_X509_STORE));
return (CRYPTO_add(&store->references, 1, CRYPTO_LOCK_X509_STORE) > 0);
}
#endif /* !HAVE_OPENSSL_CLEANUP */