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:
dwmalone 2000-10-02 12:04:17 +00:00
parent aad2f4fe75
commit 3358eb5136

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;
}