Back out that last commit, it may be insecure (pointed out by Warner

Losh).
This commit is contained in:
Brian S. Dean 2000-03-16 23:53:41 +00:00
parent 9c8e9b4a14
commit a9f9141ca5

View File

@ -562,7 +562,7 @@ __ivaliduser_af(hostf, raddr, luser, ruser, af, len)
while (fgets(buf, sizeof(buf), hostf)) {
p = buf;
/* Skip lines that are too long. */
if (strchr(p, '\n') == NULL && !feof(hostf)) {
if (strchr(p, '\n') == NULL) {
while ((ch = getc(hostf)) != '\n' && ch != EOF);
continue;
}