summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audit-linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audit-linux.c b/audit-linux.c
index b3ee2f4da..91a5381ec 100644
--- a/audit-linux.c
+++ b/audit-linux.c
@@ -99,6 +99,8 @@ audit_session_close(struct logininfo *li)
99void 99void
100audit_event(ssh_audit_event_t event) 100audit_event(ssh_audit_event_t event)
101{ 101{
102 struct ssh *ssh = active_state; /* XXX */
103
102 switch(event) { 104 switch(event) {
103 case SSH_AUTH_SUCCESS: 105 case SSH_AUTH_SUCCESS:
104 case SSH_CONNECTION_CLOSE: 106 case SSH_CONNECTION_CLOSE:
@@ -115,7 +117,7 @@ audit_event(ssh_audit_event_t event)
115 case SSH_AUTH_FAIL_GSSAPI: 117 case SSH_AUTH_FAIL_GSSAPI:
116 case SSH_INVALID_USER: 118 case SSH_INVALID_USER:
117 linux_audit_record_event(-1, audit_username(), NULL, 119 linux_audit_record_event(-1, audit_username(), NULL,
118 get_remote_ipaddr(), "sshd", 0); 120 ssh_remote_ipaddr(ssh), "sshd", 0);
119 break; 121 break;
120 122
121 default: 123 default: