Ticket #15624: exim-4.95-call_pam-1.patch

File exim-4.95-call_pam-1.patch, 756 bytes (added by Tim Tassonis, 2 years ago)
  • src/src/auths/call_pam.c

    From 51be321b27825c01829dffd90f11bfff256f7e42 Mon Sep 17 00:00:00 2001
    From: Adam Lackorzynski <adam@l4re.org>
    Date: Sat, 16 Oct 2021 16:30:07 +0100
    Subject: [PATCH] Fix PAM auth.  Bug 2813
    
    ---
     src/src/auths/call_pam.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/src/auths/call_pam.c b/src/src/auths/call_pam.c
    index 80bb23e..03b9be1 100644
    a b for (int i = 0; i < num_msg; i++)  
    8888        arg = US"";
    8989        pam_arg_ended = TRUE;
    9090        }
    91       reply[i].resp = CS string_copy_malloc(arg); /* PAM frees resp */
     91      reply[i].resp = strdup(CCS arg); /* Use libc malloc, PAM frees resp directly*/
    9292      reply[i].resp_retcode = PAM_SUCCESS;
    9393      break;
    9494