Trivial bounds checking.
[openssl.git] / crypto / init.c
index bc961718daac7a43987f03d4bd9424179fb43356..a2634d9653c3c136fb4bbf17fcb914b45aa9a461 100644 (file)
@@ -552,7 +552,7 @@ int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
             && !RUN_ONCE(&add_all_digests, ossl_init_add_all_digests))
         return 0;
 
-    if ((opts & OPENSSL_INIT_NO_ATFORK) == 0
+    if ((opts & OPENSSL_INIT_ATFORK)
             && !openssl_init_fork_handlers())
         return 0;