Skip to content

Commit

Permalink
copy the pointer, not the string. Fixes #85
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 11, 2024
1 parent 77da6f5 commit 53c0cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pam_radius_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ static int rad_converse(pam_handle_t *pamh, int msg_style, const char *message,
int retval;

resp_msg.msg_style = msg_style;
memcpy(&resp_msg.msg, message, sizeof(resp_msg.msg));
memcpy(&resp_msg.msg, &message, sizeof(resp_msg.msg));

msg[0] = &resp_msg;

Expand Down

0 comments on commit 53c0cff

Please sign in to comment.