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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user