summaryrefslogtreecommitdiff
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-01 15:55:56 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-01 15:55:56 +0000
commite3be4d7b7ec65d25428a7e4c706b33fb953e1414 (patch)
tree6190bc16e850e6cdd5c50f051bedd98ed229210d /libexec/rlogind
parent3411310dfb8dd352c3313ebf8898fe1735a26b81 (diff)
Notes
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 817f6c857ae5..11cf1c18b9f1 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -597,21 +597,8 @@ do_rlogin(dest)
return (-1);
/* XXX why don't we syslog() failure? */
- af = dest->su_family;
- switch (af) {
- case AF_INET:
- addr = (char *)&dest->su_sin.sin_addr;
- break;
-#ifdef INET6
- case AF_INET6:
- addr = (char *)&dest->su_sin6.sin6_addr;
- break;
-#endif
- default:
- return -1; /*EAFNOSUPPORT*/
- }
-
- return (iruserok_af(addr, pwd->pw_uid == 0, rusername, lusername, af));
+ return (iruserok_sa(dest, dest->su_len, pwd->pw_uid == 0, rusername,
+ lusername));
}
void