mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 23:55:01 -04:00
codepolicing
This commit is contained in:
parent
d0dbd1e98e
commit
bc007d8ef5
16
lib/smtp.c
16
lib/smtp.c
@ -842,11 +842,12 @@ static CURLcode smtp_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
|
|||||||
result = CURLE_LOGIN_DENIED;
|
result = CURLE_LOGIN_DENIED;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result = Curl_ntlm_decode_type2_message(data, data->state.buffer + 4, &conn->ntlm);
|
result = Curl_ntlm_decode_type2_message(data, data->state.buffer + 4,
|
||||||
|
&conn->ntlm);
|
||||||
if(!result) {
|
if(!result) {
|
||||||
result = Curl_ntlm_create_type3_message(conn->data, conn->user, conn->passwd, &conn->ntlm, &type3msg, &len);
|
result = Curl_ntlm_create_type3_message(conn->data, conn->user,
|
||||||
|
conn->passwd, &conn->ntlm,
|
||||||
|
&type3msg, &len);
|
||||||
if(!result) {
|
if(!result) {
|
||||||
if(type3msg) {
|
if(type3msg) {
|
||||||
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", type3msg);
|
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", type3msg);
|
||||||
@ -1125,8 +1126,9 @@ static CURLcode smtp_statemach_act(struct connectdata *conn)
|
|||||||
result = smtp_state_auth_ntlm_resp(conn, smtpcode, smtpc->state);
|
result = smtp_state_auth_ntlm_resp(conn, smtpcode, smtpc->state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SMTP_AUTHNTLM_TYPE2MSG:
|
case SMTP_AUTHNTLM_TYPE2MSG:
|
||||||
result = smtp_state_auth_ntlm_type2msg_resp(conn, smtpcode, smtpc->state);
|
result = smtp_state_auth_ntlm_type2msg_resp(conn, smtpcode,
|
||||||
|
smtpc->state);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user