git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3713a5
)
Final part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6"
author
Jeremy Allison
<jra@samba.org>
Wed, 14 Oct 2009 18:11:26 +0000
(11:11 -0700)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_pam.c
b/source3/winbindd/winbindd_pam.c
index df74c78eec2049bef2cd4ce8c28923b54ee6a05f..ddf8c464808cc4372c98d785bee128ba8ee9249e 100644
(file)
--- 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)) {