summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-01-20 14:55:27 +1100
committerDamien Miller <djm@mindrot.org>2019-01-20 14:55:27 +1100
commit9b655dc9c9a353f0a527f0c6c43a5e35653c9503 (patch)
tree78b3512ffa1a9e5b8d954aca6fb45a0a3045504b /sshd.c
parent3f0786bbe73609ac96e5a0d91425ee21129f8e04 (diff)
last bits of old packet API / active_state global
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index 58d17e546..f6927672e 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2080,7 +2080,7 @@ main(int ac, char **av)
2080 } 2080 }
2081 2081
2082#ifdef SSH_AUDIT_EVENTS 2082#ifdef SSH_AUDIT_EVENTS
2083 audit_event(SSH_AUTH_SUCCESS); 2083 audit_event(ssh, SSH_AUTH_SUCCESS);
2084#endif 2084#endif
2085 2085
2086#ifdef GSSAPI 2086#ifdef GSSAPI
@@ -2128,7 +2128,7 @@ main(int ac, char **av)
2128#endif /* USE_PAM */ 2128#endif /* USE_PAM */
2129 2129
2130#ifdef SSH_AUDIT_EVENTS 2130#ifdef SSH_AUDIT_EVENTS
2131 PRIVSEP(audit_event(SSH_CONNECTION_CLOSE)); 2131 PRIVSEP(audit_event(ssh, SSH_CONNECTION_CLOSE));
2132#endif 2132#endif
2133 2133
2134 ssh_packet_close(ssh); 2134 ssh_packet_close(ssh);
@@ -2256,8 +2256,8 @@ cleanup_exit(int i)
2256 } 2256 }
2257#ifdef SSH_AUDIT_EVENTS 2257#ifdef SSH_AUDIT_EVENTS
2258 /* done after do_cleanup so it can cancel the PAM auth 'thread' */ 2258 /* done after do_cleanup so it can cancel the PAM auth 'thread' */
2259 if (!use_privsep || mm_is_monitor()) 2259 if (the_active_state != NULL && (!use_privsep || mm_is_monitor()))
2260 audit_event(SSH_CONNECTION_ABANDON); 2260 audit_event(the_active_state, SSH_CONNECTION_ABANDON);
2261#endif 2261#endif
2262 _exit(i); 2262 _exit(i);
2263} 2263}