summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {