Commit c38d69f0 authored by Jiri Hruska's avatar Jiri Hruska Committed by Steve Holme
Browse files

imap: Simplified command response test in imap_endofresp()

parent 324b7fe4
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -335,13 +335,11 @@ 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] == ' ') {
  if(len >= id_len + 3 && !memcmp(id, line, id_len) && line[id_len] == ' ') {
    *resp = line[id_len + 1]; /* O, N or B */

    return TRUE;
  }
  }

  /* Do we have a continuation response? */
  if((len == 3 && !memcmp("+", line, 1)) ||