mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
imap: Simplified command response test in imap_endofresp()
This commit is contained in:
parent
324b7fe47b
commit
c38d69f06a
1 changed files with 3 additions and 5 deletions
|
|
@ -335,12 +335,10 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
|
|||
size_t wordlen;
|
||||
|
||||
/* Do we have a tagged command response? */
|
||||
if(len >= id_len + 3) {
|
||||
if(!memcmp(id, line, id_len) && line[id_len] == ' ') {
|
||||
*resp = line[id_len + 1]; /* O, N or B */
|
||||
if(len >= id_len + 3 && !memcmp(id, line, id_len) && line[id_len] == ' ') {
|
||||
*resp = line[id_len + 1]; /* O, N or B */
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Do we have a continuation response? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue