Stop internal ident service spinning until the timeout if the

connection goes away. Spotted by people on -STABLE about 2 weeks
ago.

Submitted by:	Based on a patch by alfred and Maxime Henrion <mux@qualys.com>
This commit is contained in:
David Malone 2000-10-02 12:04:17 +00:00
parent e0739b2bfd
commit 957672f9d4

View File

@ -480,6 +480,8 @@ ident_stream(s, sep) /* Ident service (AKA "auth") */
ssize = read(s, &buf[size], (size_t)onreadlen);
if (ssize == -1)
iderror(0, 0, s, errno);
else if (ssize == 0)
break;
bufsiz -= ssize;
size += ssize;
}