aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-28 16:40:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-28 16:40:38 +0000
commit0c16aeecaf389c8d7e11aaa82469ab645e7912e5 (patch)
tree8023c937045e48ef8cb43355d60ca7bd771f3052 /pop3.c
parentd29244afe6029d72d9c2520f3515683136c813c9 (diff)
downloadfetchmail-0c16aeecaf389c8d7e11aaa82469ab645e7912e5.tar.gz
fetchmail-0c16aeecaf389c8d7e11aaa82469ab645e7912e5.tar.bz2
fetchmail-0c16aeecaf389c8d7e11aaa82469ab645e7912e5.zip
Greg Stark's first round of patches.
svn path=/trunk/; revision=1428
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 254aa6b0..2f1c2a65 100644
--- a/pop3.c
+++ b/pop3.c
@@ -52,7 +52,9 @@ int pop3_ok (int sock, char *argbuf)
while (isalpha(*bufp))
bufp++;
- *(bufp++) = '\0';
+
+ if (*bufp)
+ *(bufp++) = '\0';
if (strcmp(buf,"+OK") == 0)
{
@@ -76,7 +78,9 @@ int pop3_ok (int sock, char *argbuf)
if (strstr(bufp,"lock")||strstr(bufp,"Lock")||strstr(bufp,"LOCK"))
ok = PS_LOCKBUSY;
else
- ok = PS_ERROR;
+ ok = PS_AUTHFAIL;
+ if (*bufp)
+ error(0,0,bufp);
}
else
ok = PS_PROTOCOL;