From: Steve Holme Date: Mon, 28 May 2012 20:29:01 +0000 (+0100) Subject: pop3: Introduced the continue response in pop3_endofresp() X-Git-Tag: curl-7_27_0~323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7291c1f5654b1c433177207bfa7e21bb30fe5a50;p=thirdparty%2Fcurl.git pop3: Introduced the continue response in pop3_endofresp() --- diff --git a/lib/pop3.c b/lib/pop3.c index 782da92165..d3b84f3423 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 */