summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Lackorzynski <adam@l4re.org>2021-10-16 16:30:07 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-10-16 16:34:03 +0100
commit51be321b27825c01829dffd90f11bfff256f7e42 (patch)
treece3800b91c5a1021cb70fb2059342adc93e98263
parent32b11385ddced7eafe68c60eebbb2c81979ce35f (diff)
Fix PAM auth. Bug 2813
-rw-r--r--src/src/auths/call_pam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/auths/call_pam.c b/src/src/auths/call_pam.c
index 80bb23ec3..03b9be1a8 100644
--- a/src/src/auths/call_pam.c
+++ b/src/src/auths/call_pam.c
@@ -88,7 +88,7 @@ for (int i = 0; i < num_msg; i++)
arg = US"";
pam_arg_ended = TRUE;
}
- reply[i].resp = CS string_copy_malloc(arg); /* PAM frees resp */
+ reply[i].resp = strdup(CCS arg); /* Use libc malloc, PAM frees resp directly*/
reply[i].resp_retcode = PAM_SUCCESS;
break;