Skip to content

Commit 51be321

Browse files
admlckJeremy Harris
authored and
Jeremy Harris
committed
Fix PAM auth. Bug 2813
1 parent 32b1138 commit 51be321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/src/auths/call_pam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ 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

0 commit comments

Comments
 (0)