From ce4542fbdeeffb20f1f93105974863aa42981e53 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 14 Oct 2009 11:11:26 -0700 Subject: [PATCH] Final part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6" Don't use mapped_user uninitialized. Jeremy. --- source3/winbindd/winbindd_pam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 6d27512193a..c9fd227cd66 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -830,6 +830,8 @@ void winbindd_pam_auth(struct winbindd_cli_state *state) if (NT_STATUS_IS_OK(name_map_status) ||NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) { fstrcpy(mapped_user, mapped); + } else { + fstrcpy(mapped_user, state->request.data.auth.user); } if (!canonicalize_username(mapped_user, name_domain, name_user)) { -- 2.11.4.GIT