summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;