diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-01 15:55:56 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-01 15:55:56 +0000 |
| commit | e3be4d7b7ec65d25428a7e4c706b33fb953e1414 (patch) | |
| tree | 6190bc16e850e6cdd5c50f051bedd98ed229210d /libexec/rshd | |
| parent | 3411310dfb8dd352c3313ebf8898fe1735a26b81 (diff) | |
Notes
Diffstat (limited to 'libexec/rshd')
| -rw-r--r-- | libexec/rshd/rshd.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index e5e07a474b56..cdc2ce14ea19 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -408,14 +408,8 @@ doit(fromp) if (errorstr || (pwd->pw_expire && time(NULL) >= pwd->pw_expire) || (pwd->pw_passwd != 0 && *pwd->pw_passwd != '\0' && - iruserok_af( -#ifdef INET6 - (af == AF_INET6) - ? (void *)&fromp->su_sin6.sin6_addr : -#endif - (void *)&fromp->su_sin.sin_addr, - pwd->pw_uid == 0, - remuser, locuser, af) < 0)) { + iruserok_sa(fromp, fromp->su_len, pwd->pw_uid == 0, + remuser, locuser) < 0)) { if (__rcmd_errstr) syslog(LOG_INFO|LOG_AUTH, "%s@%s as %s: permission denied (%s). cmd='%.80s'", |
