summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-14 12:36:02 -0700
committerJeremy Allison <jra@samba.org>2009-10-14 12:36:02 -0700
commit1c1a883bd01d0a474787f984af13543c0fd9ef6b (patch)
tree2dc3ef541303c11a684fc020adcf292100295148
parentce4542fbdeeffb20f1f93105974863aa42981e53 (diff)
downloadsamba-1c1a883bd01d0a474787f984af13543c0fd9ef6b.tar.gz
samba-1c1a883bd01d0a474787f984af13543c0fd9ef6b.tar.bz2
samba-1c1a883bd01d0a474787f984af13543c0fd9ef6b.zip
Fix the build, missing ->.
Jeremy.
-rw-r--r--nsswitch/pam_winbind.c4
-rw-r--r--source3/winbindd/winbindd_pam.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index fd06688d08..fdb5be3223 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -980,8 +980,8 @@ static bool winbind_name_to_sid_string(struct pwb_context *ctx,
char *sid_list_buffer,
int sid_list_buffer_size)
{
- const char* sid_string;
- char *sid_str;
+ const char* sid_string = NULL;
+ char *sid_str = NULL;
/* lookup name? */
if (IS_SID_STRING(name)) {
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index c9fd227cd6..fe6485522e 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -831,7 +831,7 @@ void winbindd_pam_auth(struct winbindd_cli_state *state)
||NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) {
fstrcpy(mapped_user, mapped);
} else {
- fstrcpy(mapped_user, state->request.data.auth.user);
+ fstrcpy(mapped_user, state->request->data.auth.user);
}
if (!canonicalize_username(mapped_user, name_domain, name_user)) {