aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-10-03 23:04:32 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-10-03 23:28:17 +0200
commitbc007d8ef5acc5779657c131405d5de9d6d6c5c0 (patch)
treefe1f91466664896bd5092c56702b59e29c92e17b
parentd0dbd1e98e9b8f4624b33ffcd91a55e7d0f78fa9 (diff)
codepolicing
-rw-r--r--lib/smtp.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 945397af8..141b04a0c 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -842,11 +842,12 @@ static CURLcode smtp_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
result = CURLE_LOGIN_DENIED;
}
else {
- result = Curl_ntlm_decode_type2_message(data, data->state.buffer + 4, &conn->ntlm);
-
- if(!result) {
- result = Curl_ntlm_create_type3_message(conn->data, conn->user, conn->passwd, &conn->ntlm, &type3msg, &len);
-
+ result = Curl_ntlm_decode_type2_message(data, data->state.buffer + 4,
+ &conn->ntlm);
+ if(!result) {
+ result = Curl_ntlm_create_type3_message(conn->data, conn->user,
+ conn->passwd, &conn->ntlm,
+ &type3msg, &len);
if(!result) {
if(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);
break;
- case SMTP_AUTHNTLM_TYPE2MSG:
- result = smtp_state_auth_ntlm_type2msg_resp(conn, smtpcode, smtpc->state);
+ case SMTP_AUTHNTLM_TYPE2MSG:
+ result = smtp_state_auth_ntlm_type2msg_resp(conn, smtpcode,
+ smtpc->state);
break;
#endif