From 7291c1f5654b1c433177207bfa7e21bb30fe5a50 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Mon, 28 May 2012 21:29:01 +0100 Subject: pop3: Introduced the continue response in pop3_endofresp() --- lib/pop3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 */ -- cgit v1.2.3