Commit 3dbf11d0 authored by Steve Holme's avatar Steve Holme
Browse files

pop3.c: Fixed unnecessary state change if starttls fails

The state machine should only be changed to POP3_STARTTLS when the
STLS command has been successfully sent to the server.
parent 499e30c4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -542,6 +542,7 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
    /* We don't have a SSL/TLS connection yet, but SSL is requested. Switch
       to TLS connection now */
    result = Curl_pp_sendf(&pop3c->pp, "STLS");
    if(!result)
      state(conn, POP3_STARTTLS);
  }
  else