From 6f8f7c82b2b38220d99395d5d2732281b3cf1867 Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Tue, 26 Sep 2023 16:24:16 -0400 Subject: [PATCH] Passkey: Increase conv message size for prompting Size needs to handle the prompts for interactive, touch, pin prompt, and kerberos pre-auth warning message which could all be displayed. Reviewed-by: Iker Pedrosa Reviewed-by: Sumit Bose --- src/sss_client/pam_sss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index 2cc43c3ff77..a1c35360484 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -1849,8 +1849,8 @@ static int prompt_passkey(pam_handle_t *pamh, struct pam_items *pi, { int ret; const struct pam_conv *conv; - const struct pam_message *mesg[3] = { NULL, NULL, NULL }; - struct pam_message m[3] = { {0}, {0}, {0} }; + const struct pam_message *mesg[4] = { NULL, NULL, NULL, NULL }; + struct pam_message m[4] = { {0}, {0}, {0}, {0} }; struct pam_response *resp = NULL; bool kerberos_preauth; bool prompt_pin;