aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-05-28 21:29:01 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-05-28 21:29:01 +0100
commit7291c1f5654b1c433177207bfa7e21bb30fe5a50 (patch)
tree3dfd7adc6ae90db42192801d59c9ed70b81b5433
parent3fa0fbb816bb03b5d68d80a26323ee8c8609c369 (diff)
pop3: Introduced the continue response in pop3_endofresp()
-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 */