smtp: Moved the per-request variables to the per-request data structure

Moved the rcpt variable from the per-connection struct smtp_conn to the
new per-request struct and fixed references accordingly.
This commit is contained in:
Steve Holme
2013-02-23 19:39:22 +00:00
parent ed7d438a12
commit 8a468ef222
2 changed files with 13 additions and 13 deletions

View File

@@ -62,6 +62,7 @@ struct SMTP {
char *user; /* User name string */
char *passwd; /* Password string */
curl_pp_transfer transfer;
struct curl_slist *rcpt; /* Recipient list */
};
/* smtp_conn is used for struct connection-oriented data in the connectdata
@@ -74,7 +75,6 @@ struct smtp_conn {
unsigned int authmechs; /* Accepted authentication mechanisms */
unsigned int authused; /* Auth mechanism used for the connection */
smtpstate state; /* Always use smtp.c:state() to change state! */
struct curl_slist *rcpt; /* Recipient list */
bool ssldone; /* Is connect() over SSL done? */
bool tls_supported; /* StartTLS capability supported by server */
bool size_supported; /* If server supports SIZE extension according to