Final part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6"
authorJeremy Allison <jra@samba.org>
Wed, 14 Oct 2009 18:11:26 +0000 (11:11 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 14 Oct 2009 18:30:25 +0000 (11:30 -0700)
Don't use mapped_user uninitialized.
Jeremy.

source3/winbindd/winbindd_pam.c

index df74c78eec2049bef2cd4ce8c28923b54ee6a05f..ddf8c464808cc4372c98d785bee128ba8ee9249e 100644 (file)
@@ -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)) {