diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/pampass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index 4312b771c9..4eec269a82 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -276,7 +276,7 @@ static int smb_pam_passchange_conv(int num_msg, fstring current_prompt; fstring current_reply; struct smb_pam_userdata *udp = (struct smb_pam_userdata *)appdata_ptr; - struct chat_struct *pw_chat= make_pw_chat(lp_passwd_chat()); + struct chat_struct *pw_chat; struct chat_struct *t; bool found; *resp = NULL; @@ -286,7 +286,7 @@ static int smb_pam_passchange_conv(int num_msg, if (num_msg <= 0) return PAM_CONV_ERR; - if (pw_chat == NULL) + if ((pw_chat = make_pw_chat(lp_passwd_chat())) == NULL) return PAM_CONV_ERR; /* |