Preserve errno on dlopen
authorMatt Caswell <matt@openssl.org>
Wed, 21 Nov 2018 11:57:04 +0000 (11:57 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Dec 2018 10:17:43 +0000 (10:17 +0000)
commit3cb4e7dc1cf92022f62b9bbdd59695885a1265ff
tree3ea32097cec47a62f731f88518206778950b88d7
parent71b1ceffc4c795f5db21861dd1016fbe23a53a53
Preserve errno on dlopen

For the same reasons as in the previous commit we must preserve errno
across dlopen calls. Some implementations (e.g. solaris) do not preserve
errno even on a successful dlopen call.

Fixes #6953

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7680)
crypto/dso/dso_dlfcn.c