else if(smtpc->authmechs & SASL_MECH_PLAIN) {
mech = "PLAIN";
state1 = SMTP_AUTH_PLAIN;
- state2 = SMTP_AUTH;
+ state2 = SMTP_AUTH_FINAL;
smtpc->authused = SASL_MECH_PLAIN;
result = Curl_sasl_create_plain_message(conn->data, conn->user,
conn->passwd, &initresp, &len);
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", plainauth);
if(!result)
- state(conn, SMTP_AUTH);
+ state(conn, SMTP_AUTH_FINAL);
}
Curl_safefree(plainauth);
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", authpasswd);
if(!result)
- state(conn, SMTP_AUTH);
+ state(conn, SMTP_AUTH_FINAL);
}
Curl_safefree(authpasswd);
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", rplyb64);
if(!result)
- state(conn, SMTP_AUTH);
+ state(conn, SMTP_AUTH_FINAL);
}
Curl_safefree(rplyb64);
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "");
if(!result)
- state(conn, SMTP_AUTH);
+ state(conn, SMTP_AUTH_FINAL);
}
return result;
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", type3msg);
if(!result)
- state(conn, SMTP_AUTH);
+ state(conn, SMTP_AUTH_FINAL);
}
Curl_safefree(type3msg);
break;
#endif
- case SMTP_AUTH:
+ case SMTP_AUTH_FINAL:
result = smtp_state_auth_final_resp(conn, smtpcode, smtpc->state);
break;