fix auditing on Linux

get_remote_ipaddr() was replaced with ssh_remote_ipaddr()
This commit is contained in:
Damien Miller 2016-07-27 08:18:05 +10:00
parent 80e766fb08
commit 393bd381a4
1 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,8 @@ audit_session_close(struct logininfo *li)
void
audit_event(ssh_audit_event_t event)
{
struct ssh *ssh = active_state; /* XXX */
switch(event) {
case SSH_AUTH_SUCCESS:
case SSH_CONNECTION_CLOSE:
@ -115,7 +117,7 @@ audit_event(ssh_audit_event_t event)
case SSH_AUTH_FAIL_GSSAPI:
case SSH_INVALID_USER:
linux_audit_record_event(-1, audit_username(), NULL,
get_remote_ipaddr(), "sshd", 0);
ssh_remote_ipaddr(ssh), "sshd", 0);
break;
default: