Skip to content

Commit

Permalink
pam_get_item() takes a void ** arg, not const void **, on Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
millert committed Nov 12, 2024
1 parent 8b53757 commit 0f41cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sudoers/auth/pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ sudo_pam_verify(const struct sudoers_context *ctx, struct passwd *pw,
switch (*pam_status) {
case PAM_SUCCESS:
/* Verify user did not change during PAM transaction. */
rc = pam_get_item(pamh, PAM_USER, (const void **)&pam_user);
rc = pam_get_item(pamh, PAM_USER, (PAM_CONST void **)&pam_user);
if (rc == PAM_SUCCESS &&
(pam_user == NULL || strcmp(pam_user, pw->pw_name) != 0)) {
sudo_debug_printf(SUDO_DEBUG_WARN|SUDO_DEBUG_LINENO,
Expand Down

0 comments on commit 0f41cd7

Please sign in to comment.