git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6fc461
)
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:16:03 +0000
(11:16 -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 6d27512193aeda5dfa8ebec55fc93cb07942f0a7..c9fd227cd6682a6ae80823cae157f36a35fc40a5 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)) {