From 5d8f451a4154e429ec059e2c16bd0d564a08f67a Mon Sep 17 00:00:00 2001 From: RisingWater <4680414@qq.com> Date: Tue, 17 Nov 2020 11:48:26 +0800 Subject: [PATCH] Update verify_user_pam.c when a system give a tip message in function verify_pam_conv, authenticate will fail. so it need skip this message to make sure authenticate success. --- sesman/verify_user_pam.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sesman/verify_user_pam.c b/sesman/verify_user_pam.c index 312bcbc8..a9f5a332 100644 --- a/sesman/verify_user_pam.c +++ b/sesman/verify_user_pam.c @@ -77,6 +77,9 @@ verify_pam_conv(int num_msg, const struct pam_message **msg, reply[i].resp = g_strdup(user_pass->pass); reply[i].resp_retcode = PAM_SUCCESS; break; + case PAM_TEXT_INFO: + memset(&reply[i], 0, sizeof(struct pam_response)); + break; default: g_printf("unknown in verify_pam_conv\r\n"); g_free(reply);