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

smtp: Refactored the smtp_state_auth_resp() function

Renamed smtp_state_auth_resp() function to match the implementations in
IMAP and POP3.
parent a6dca9d2
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -910,7 +910,8 @@ static CURLcode smtp_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
#endif

/* For the final responses to the AUTH sequence */
static CURLcode smtp_state_auth_resp(struct connectdata *conn, int smtpcode,
static CURLcode smtp_state_auth_final_resp(struct connectdata *conn,
                                           int smtpcode, 
                                           smtpstate instate)
{
  CURLcode result = CURLE_OK;
@@ -1213,7 +1214,7 @@ static CURLcode smtp_statemach_act(struct connectdata *conn)
#endif

    case SMTP_AUTH:
      result = smtp_state_auth_resp(conn, smtpcode, smtpc->state);
      result = smtp_state_auth_final_resp(conn, smtpcode, smtpc->state);
      break;

    case SMTP_MAIL: