summaryrefslogtreecommitdiff
path: root/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'audit.c')
-rw-r--r--audit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/audit.c b/audit.c
index dbea34cb2..ced57fa64 100644
--- a/audit.c
+++ b/audit.c
@@ -1,4 +1,4 @@
1/* $Id: audit.c,v 1.5 2006/09/01 05:38:36 djm Exp $ */ 1/* $Id: audit.c,v 1.6 2011/01/17 10:15:30 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2004, 2005 Darren Tucker. All rights reserved. 4 * Copyright (c) 2004, 2005 Darren Tucker. All rights reserved.
@@ -147,9 +147,9 @@ audit_event(ssh_audit_event_t event)
147 * within a single connection. 147 * within a single connection.
148 */ 148 */
149void 149void
150audit_session_open(const char *ttyn) 150audit_session_open(struct logininfo *li)
151{ 151{
152 const char *t = ttyn ? ttyn : "(no tty)"; 152 const char *t = li->line ? li->line : "(no tty)";
153 153
154 debug("audit session open euid %d user %s tty name %s", geteuid(), 154 debug("audit session open euid %d user %s tty name %s", geteuid(),
155 audit_username(), t); 155 audit_username(), t);
@@ -163,9 +163,9 @@ audit_session_open(const char *ttyn)
163 * within a single connection. 163 * within a single connection.
164 */ 164 */
165void 165void
166audit_session_close(const char *ttyn) 166audit_session_close(struct logininfo *li)
167{ 167{
168 const char *t = ttyn ? ttyn : "(no tty)"; 168 const char *t = li->line ? li->line : "(no tty)";
169 169
170 debug("audit session close euid %d user %s tty name %s", geteuid(), 170 debug("audit session close euid %d user %s tty name %s", geteuid(),
171 audit_username(), t); 171 audit_username(), t);