summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 2fb96bb6c..78c51abd6 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -94,11 +94,11 @@ record_utmp_only(pid_t pid, const char *ttyname, const char *user,
94/* Records that the user has logged out. */ 94/* Records that the user has logged out. */
95 95
96void 96void
97record_logout(pid_t pid, const char *ttyname) 97record_logout(pid_t pid, const char *ttyname, const char *user)
98{ 98{
99 struct logininfo *li; 99 struct logininfo *li;
100 100
101 li = login_alloc_entry(pid, NULL, NULL, ttyname); 101 li = login_alloc_entry(pid, user, NULL, ttyname);
102 login_logout(li); 102 login_logout(li);
103 login_free_entry(li); 103 login_free_entry(li);
104} 104}