summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2003-01-01 23:43:55 +0000
committerKevin Steves <stevesk@pobox.com>2003-01-01 23:43:55 +0000
commit678ee51ff3493f0185dcb23bfb9fb2ba299d89b1 (patch)
tree75cf1d0971f4c774f60b7d0eeb3583c6a567f35f /sshlogin.c
parent1b96cfb97585459bbb71198123425f7e831e2845 (diff)
- (stevesk) [session.c sshlogin.c sshlogin.h] complete portable
parts of pass addrlen with sockaddr * fix. from Hajimu UMEMOTO <ume@FreeBSD.org>
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 4cd1c005..12555d63 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,
struct logininfo *li;
li = login_alloc_entry(pid, user, host, ttyname);
- login_set_addr(li, addr, sizeof(struct sockaddr));
+ login_set_addr(li, addr, addrlen);
login_login(li);
login_free_entry(li);
}
@@ -78,12 +78,12 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
#ifdef LOGIN_NEEDS_UTMPX
void
record_utmp_only(pid_t pid, const char *ttyname, const char *user,
- const char *host, struct sockaddr * addr)
+ const char *host, struct sockaddr * addr, socklen_t addrlen)
{
struct logininfo *li;
li = login_alloc_entry(pid, user, host, ttyname);
- login_set_addr(li, addr, sizeof(struct sockaddr));
+ login_set_addr(li, addr, addrlen);
login_utmp_only(li);
login_free_entry(li);
}