diff options
author | Kevin Steves <stevesk@pobox.com> | 2003-01-01 23:43:55 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2003-01-01 23:43:55 +0000 |
commit | 678ee51ff3493f0185dcb23bfb9fb2ba299d89b1 (patch) | |
tree | 75cf1d0971f4c774f60b7d0eeb3583c6a567f35f /sshlogin.c | |
parent | 1b96cfb97585459bbb71198123425f7e831e2845 (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.c | 6 |
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 |
79 | void | 79 | void |
80 | record_utmp_only(pid_t pid, const char *ttyname, const char *user, | 80 | record_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 | } |