aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-24 13:36:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-24 13:36:02 +0000
commitc3d362f9c8a1dea65918ec84e72de1555992adc0 (patch)
treeeaec378b50e10c739b447a574e9796a39af4b4ab /socket.c
parentf1c7b68c3c5edc45d51478f4ca681d529b2d8e16 (diff)
downloadfetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.tar.gz
fetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.tar.bz2
fetchmail-c3d362f9c8a1dea65918ec84e72de1555992adc0.zip
Paul Traina's crash fix.
svn path=/trunk/; revision=373
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 9ea13864..1e209cac 100644
--- a/socket.c
+++ b/socket.c
@@ -151,7 +151,7 @@ int len;
static char sbuf [INTERNAL_BUFSIZE];
static char *bp;
- if (sbuflen == 0) {
+ if (sbuflen <= 0) {
/* buffer is empty; refresh. */
if ((sbuflen = read(socket,sbuf,INTERNAL_BUFSIZE)) < 0) {
if (errno = EINTR)