Back out that last commit, it may be insecure (pointed out by Warner
Losh).
This commit is contained in:
parent
9c8e9b4a14
commit
a9f9141ca5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user