summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-14 11:11:26 -0700
committerJeremy Allison <jra@samba.org>2009-10-14 11:16:03 -0700
commitce4542fbdeeffb20f1f93105974863aa42981e53 (patch)
tree127dc67af570b9c7fbaa568d835b02666c4a130e /source3/winbindd
parentc6fc461e71cd1837a58ad5dcad3d3f952390e5cf (diff)
downloadsamba-ce4542fbdeeffb20f1f93105974863aa42981e53.tar.gz
samba-ce4542fbdeeffb20f1f93105974863aa42981e53.tar.bz2
samba-ce4542fbdeeffb20f1f93105974863aa42981e53.zip
Final part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6"
Don't use mapped_user uninitialized. Jeremy.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 6d27512193..c9fd227cd6 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)) {