OPENSSL_init_crypto(): check config return code correctly
authorRichard Levitte <levitte@openssl.org>
Fri, 5 Apr 2019 08:28:32 +0000 (10:28 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 5 Apr 2019 10:41:19 +0000 (12:41 +0200)
commitb7534359306754b90a4f18aa5231477510488713
treec467225333bfeac6a912aadfeaa78bfbef1e1002
parentc15ef410e1898224736813b8b8e50caf7e5eadba
OPENSSL_init_crypto(): check config return code correctly

It was assumed that the config functionality returned a boolean.
However, it may return a negative number on error, so we need to take
that into account.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8679)

(cherry picked from commit e3af453baceee7401ba0c5044a4c3aeaf246406f)
crypto/init.c