aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-24 00:10:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-24 00:10:03 +0000
commitd77852561a7e6abb3d813779b2d313cdea170896 (patch)
tree980de4fe8d0cd3ff8645f28af85f8ebc236dc7ed /pop3.c
parentd92b8233c987c8f48c56500bc4d7bd84c82ded63 (diff)
downloadfetchmail-d77852561a7e6abb3d813779b2d313cdea170896.tar.gz
fetchmail-d77852561a7e6abb3d813779b2d313cdea170896.tar.bz2
fetchmail-d77852561a7e6abb3d813779b2d313cdea170896.zip
Better error tracking.
svn path=/trunk/; revision=815
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pop3.c b/pop3.c
index 07fc22de..17a6306a 100644
--- a/pop3.c
+++ b/pop3.c
@@ -171,7 +171,7 @@ static int pop3_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
int num;
*newp = 0;
- while (!gen_recv(sockfp, buf, sizeof(buf)))
+ while ((ok = gen_recv(sockfp, buf, sizeof(buf))) == 0)
{
if (buf[0] == '.')
break;
@@ -202,7 +202,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes)
{
char buf [POPBUFSIZE+1];
- while (!gen_recv(sockfp, buf, sizeof(buf)))
+ while ((ok = gen_recv(sockfp, buf, sizeof(buf))) == 0)
{
int num, size;
@@ -214,7 +214,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes)
sizes[num - 1] = -1;
}
- return(0);
+ return(ok);
}
}