Cast appdata_ptr explicitly, needed for C++ compatibility
This commit is contained in:
parent
4b05bb2ebd
commit
bde4925f0e
@ -61,12 +61,12 @@ verify_pam_conv(int num_msg, const struct pam_message **msg,
|
||||
switch (msg[i]->msg_style)
|
||||
{
|
||||
case PAM_PROMPT_ECHO_ON: /* username */
|
||||
user_pass = appdata_ptr;
|
||||
user_pass = (struct t_user_pass *) appdata_ptr;
|
||||
reply[i].resp = g_strdup(user_pass->user);
|
||||
reply[i].resp_retcode = PAM_SUCCESS;
|
||||
break;
|
||||
case PAM_PROMPT_ECHO_OFF: /* password */
|
||||
user_pass = appdata_ptr;
|
||||
user_pass = (struct t_user_pass *) appdata_ptr;
|
||||
reply[i].resp = g_strdup(user_pass->pass);
|
||||
reply[i].resp_retcode = PAM_SUCCESS;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user