summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 4cd1c0059..12555d635 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -70,7 +70,7 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
70 struct logininfo *li; 70 struct logininfo *li;
71 71
72 li = login_alloc_entry(pid, user, host, ttyname); 72 li = login_alloc_entry(pid, user, host, ttyname);
73 login_set_addr(li, addr, sizeof(struct sockaddr)); 73 login_set_addr(li, addr, addrlen);
74 login_login(li); 74 login_login(li);
75 login_free_entry(li); 75 login_free_entry(li);
76} 76}
@@ -78,12 +78,12 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
78#ifdef LOGIN_NEEDS_UTMPX 78#ifdef LOGIN_NEEDS_UTMPX
79void 79void
80record_utmp_only(pid_t pid, const char *ttyname, const char *user, 80record_utmp_only(pid_t pid, const char *ttyname, const char *user,
81 const char *host, struct sockaddr * addr) 81 const char *host, struct sockaddr * addr, socklen_t addrlen)
82{ 82{
83 struct logininfo *li; 83 struct logininfo *li;
84 84
85 li = login_alloc_entry(pid, user, host, ttyname); 85 li = login_alloc_entry(pid, user, host, ttyname);
86 login_set_addr(li, addr, sizeof(struct sockaddr)); 86 login_set_addr(li, addr, addrlen);
87 login_utmp_only(li); 87 login_utmp_only(li);
88 login_free_entry(li); 88 login_free_entry(li);
89} 89}