summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-15 00:59:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-15 00:59:35 +0000
commita701af1782e70796145a6a25959e44684bdc9558 (patch)
treee0d7d7e633ca124e9ac0de5522086d80fb187351 /libexec
parent34135b9cad5432a546a3fc3e8b714f23ab2d16d9 (diff)
another terminating condition, why did i forget that
Diffstat (limited to 'libexec')
-rw-r--r--libexec/identd/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/identd/parse.c b/libexec/identd/parse.c
index 0646d607448..4deefd4bac8 100644
--- a/libexec/identd/parse.c
+++ b/libexec/identd/parse.c
@@ -77,7 +77,7 @@ timed_read(fd, buf, siz, timeout)
if ((error = select(fd + 1, &readfds, 0, 0, &tv)) <= 0)
return error;
r = read(fd, p, siz - tot);
- if (r == -1)
+ if (r == -1 || r == 0)
return (r);
for (i = 0; i < r; i++)
if (p[i] == '\r' || p[i] == '\n') {