nsswitch: protect access to wb_global_ctx by a mutex
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 2 Oct 2018 11:41:00 +0000 (13:41 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 1 Nov 2018 00:59:10 +0000 (01:59 +0100)
commit988182c3b8dab6511c75622e3484c9ef71e6d0db
tree843b9d63a8d313210d1ebbf24d835ca43e850fbc
parente82b3ac0ae5b50993db3c85d77dd317f957beb7e
nsswitch: protect access to wb_global_ctx by a mutex

This change will make libwbclient thread safe for all API calls not using a
context. Especially there are no more conflicts with threads using nsswitch
and libwbclient in parallel.

Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/wb_common.c