mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 12:50:00 -04: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:
parent
0130ff96d5
commit
f0ac4c47b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue