diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-10-02 12:04:17 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-10-02 12:04:17 +0000 |
commit | 3358eb51361a280e632f8a92d228c2c3077cac3d (patch) | |
tree | d5b27e1d30761614ff27be02f4532d68a9de1466 /usr.sbin/inetd | |
parent | aad2f4fe75d114b5df322e53cca39507757085c8 (diff) | |
download | FreeBSD-src-3358eb51361a280e632f8a92d228c2c3077cac3d.zip FreeBSD-src-3358eb51361a280e632f8a92d228c2c3077cac3d.tar.gz |
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>
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/builtins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index c32a98d..7d7d7a1 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -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; } |