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
aad2f4fe75
commit
3358eb5136
@ -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