Loading lib/pop3.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -659,11 +659,11 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn, } } else { else { /* Look for the APOP timestamp */ /* Look for the APOP timestamp */ if(len >= 3 && line[len - 3] == '>') { if(len >= 4 && line[len - 2] == '>') { for(i = 0; i < len - 3; ++i) { for(i = 3; i < len - 2; ++i) { if(line[i] == '<') { if(line[i] == '<') { /* Calculate the length of the timestamp */ /* Calculate the length of the timestamp */ size_t timestamplen = len - 2 - i; size_t timestamplen = len - 1 - i; if(!timestamplen) if(!timestamplen) break; break; Loading Loading
lib/pop3.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -659,11 +659,11 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn, } } else { else { /* Look for the APOP timestamp */ /* Look for the APOP timestamp */ if(len >= 3 && line[len - 3] == '>') { if(len >= 4 && line[len - 2] == '>') { for(i = 0; i < len - 3; ++i) { for(i = 3; i < len - 2; ++i) { if(line[i] == '<') { if(line[i] == '<') { /* Calculate the length of the timestamp */ /* Calculate the length of the timestamp */ size_t timestamplen = len - 2 - i; size_t timestamplen = len - 1 - i; if(!timestamplen) if(!timestamplen) break; break; Loading