Skip to content

Commit

Permalink
Merge pull request #3170 from matt335672/fix_missing_pre_session_ipaddr
Browse files Browse the repository at this point in the history
sesman: Copy IP address to pre_session_item struct
  • Loading branch information
matt335672 authored Jul 22, 2024
2 parents b6407a9 + a4f5757 commit 4bfeb66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sesman/scp_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ process_sys_login_request(struct pre_session_item *psi)
}
else
{
/*
* Copy the IP address of the requesting user, anticipating a
* successful login. We need this so we can search for a session
* with a matching IP address if required.
*/
g_snprintf(psi->start_ip_addr, sizeof(psi->start_ip_addr),
"%s", ip_addr);

/* Create a sesexec process to handle the login
*
* We won't check for the user being valid here, as this might
Expand Down

0 comments on commit 4bfeb66

Please sign in to comment.