--- 1/nsswitch/wb_common.c 2023-09-02 13:38:34.506064173 -0700 +++ 2/nsswitch/wb_common.c 2023-09-06 23:43:49.393985656 -0700 @@ -66,6 +66,12 @@ struct winbindd_context *ctx = NULL; int ret; + if (!wb_global_ctx.initialized) { + return; + } + + wb_global_ctx.initialized = false; + ctx = (struct winbindd_context *)pthread_getspecific(wb_global_ctx.key); if (ctx == NULL) { return;