Commit 7fd49073 authored by Steve Holme's avatar Steve Holme
Browse files

imap: Fixed auth preference not being honored when CAPABILITY not supported

If a user indicated they preferred to authenticate using a SASL
mechanism, but SASL authentication wasn't supported by the server, curl
would always fall back to clear text when CAPABILITY wasn't supported,
even though the user didn't want to use this.
parent 0c762f1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -917,7 +917,7 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn,
      result = imap_perform_authentication(conn);
  }
  else
    result = imap_perform_login(conn);
    result = imap_perform_authentication(conn);

  return result;
}