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:22:05 +0000 (10:22 +0000)
commitef97becf522fc4e2e9d98e6ae7bcb26651883d9a
tree6dd49b521dd2d01c0e3bfcadd610dae984e7a0fc
parent99992ad22019e752c7b103a45f860a48b6bc0972
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)

(cherry picked from commit 3cb4e7dc1cf92022f62b9bbdd59695885a1265ff)
crypto/dso/dso_dlfcn.c