Skip to content
Commit 123bd1ec authored by Florian Weimer's avatar Florian Weimer
Browse files

nss: Protect against errno changes in function lookup (bug 28953)



dlopen may clobber errno.  The nss_test_errno module uses an ELF
constructor to achieve that, but there could be internal errors
during dlopen that cause this, too.  Therefore, the NSS framework
has to guard against such errno clobbers.

__nss_module_get_function is currently the only function that calls
__nss_module_load, so it is sufficient to save and restore errno
around this call.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
(cherry picked from commit 9bdf92c7)
parent c54c5cd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment