pop3.c: Small code tidy up
Corrected lines exceeding 78 characters. Repositioned some comments and added extra clarity.
This commit is contained in:
15
lib/pop3.c
15
lib/pop3.c
@@ -367,7 +367,7 @@ static CURLcode pop3_authenticate(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
infof(conn->data, "No known SASL auth mechanisms supported!\n");
|
infof(conn->data, "No known SASL auth mechanisms supported!\n");
|
||||||
result = CURLE_LOGIN_DENIED; /* Other mechanisms not supported */
|
result = CURLE_LOGIN_DENIED; /* Other mechanisms not supported */
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!result) {
|
if(!result) {
|
||||||
@@ -666,7 +666,8 @@ static CURLcode pop3_state_auth_final_resp(struct connectdata *conn,
|
|||||||
result = CURLE_LOGIN_DENIED;
|
result = CURLE_LOGIN_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
state(conn, POP3_STOP); /* End of connect phase */
|
/* End of connect phase */
|
||||||
|
state(conn, POP3_STOP);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -713,7 +714,8 @@ static CURLcode pop3_state_pass_resp(struct connectdata *conn,
|
|||||||
result = CURLE_LOGIN_DENIED;
|
result = CURLE_LOGIN_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
state(conn, POP3_STOP); /* End of connect phase */
|
/* End of connect phase */
|
||||||
|
state(conn, POP3_STOP);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -768,6 +770,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
pp->cache_size = 0;
|
pp->cache_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* End of do phase */
|
||||||
state(conn, POP3_STOP);
|
state(conn, POP3_STOP);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -852,7 +855,8 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case POP3_AUTH_LOGIN_PASSWD:
|
case POP3_AUTH_LOGIN_PASSWD:
|
||||||
result = pop3_state_auth_login_password_resp(conn, pop3code, pop3c->state);
|
result = pop3_state_auth_login_password_resp(conn, pop3code,
|
||||||
|
pop3c->state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case POP3_AUTH_NTLM:
|
case POP3_AUTH_NTLM:
|
||||||
@@ -860,7 +864,8 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case POP3_AUTH_NTLM_TYPE2MSG:
|
case POP3_AUTH_NTLM_TYPE2MSG:
|
||||||
result = pop3_state_auth_ntlm_type2msg_resp(conn, pop3code, pop3c->state);
|
result = pop3_state_auth_ntlm_type2msg_resp(conn, pop3code,
|
||||||
|
pop3c->state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case POP3_AUTH_FINAL:
|
case POP3_AUTH_FINAL:
|
||||||
|
|||||||
Reference in New Issue
Block a user