aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pop3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 782da9216..d3b84f342 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -219,7 +219,8 @@ static int pop3_endofresp(struct pingpong *pp, int *resp)
struct pop3_conn *pop3c = &conn->proto.pop3c;
size_t wordlen;
- if((len < 3 || memcmp("+OK", line, 3)) &&
+ if((len < 1 || memcmp("+", line, 1)) &&
+ (len < 3 || memcmp("+OK", line, 3)) &&
(len < 4 || memcmp("-ERR", line, 4)))
return FALSE; /* Nothing for us */