Fix the build, missing ->.
authorJeremy Allison <jra@samba.org>
Wed, 14 Oct 2009 19:36:02 +0000 (12:36 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 14 Oct 2009 19:36:02 +0000 (12:36 -0700)
Jeremy.

nsswitch/pam_winbind.c
source3/winbindd/winbindd_pam.c

index fd06688d0850fddad3a4d89042d0cbd2631f0797..fdb5be32238187b37953805da254d766bc432b0b 100644 (file)
@@ -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)) {
index c9fd227cd6682a6ae80823cae157f36a35fc40a5..fe6485522e083f8ac1b32cb381b8c1f8a47105fe 100644 (file)
@@ -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)) {