projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OPENSSL_init_crypto(): check config return code correctly
[openssl.git]
/
crypto
/
init.c
diff --git
a/crypto/init.c
b/crypto/init.c
index 463da9853dd56092066c6de6d96f4ae286018335..43fe1a6e1bb4af71d393c95a2cff7a42f695fe1f 100644
(file)
--- a/
crypto/init.c
+++ b/
crypto/init.c
@@
-670,7
+670,7
@@
int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
ret = RUN_ONCE(&config, ossl_init_config);
conf_settings = NULL;
CRYPTO_THREAD_unlock(init_lock);
- if (
!ret
)
+ if (
ret <= 0
)
return 0;
}