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:
parent
e0739b2bfd
commit
957672f9d4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user