From: Andreas Schneider Date: Fri, 4 Nov 2022 12:19:55 +0000 (+0100) Subject: nwrap: Fix mutex unlocking in nwrap_init() X-Git-Tag: nss_wrapper-1.1.13~9 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=da2f3f5ce3828f572415c168555274cf51fd9d9c;p=nss_wrapper.git nwrap: Fix mutex unlocking in nwrap_init() Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c index 88e81d9..9541365 100644 --- a/src/nss_wrapper.c +++ b/src/nss_wrapper.c @@ -1977,7 +1977,12 @@ static void nwrap_init(void) nwrap_he_global.cache->unload = nwrap_he_unload; /* We hold all locks here so we can use NWRAP_UNLOCK_ALL. */ - NWRAP_UNLOCK_ALL; + NWRAP_UNLOCK(nwrap_sp_global); + NWRAP_UNLOCK(nwrap_pw_global); + NWRAP_UNLOCK(nwrap_he_global); + NWRAP_UNLOCK(nwrap_gr_global); + NWRAP_UNLOCK(nwrap_global); + NWRAP_UNLOCK(nwrap_initialized); } bool nss_wrapper_enabled(void)