/* Send the EHLO command */
result = Curl_pp_sendf(&smtpc->pp, "EHLO %s", smtpc->domain);
- if(result)
- return result;
-
- state(conn, SMTP_EHLO);
+ if(!result)
+ state(conn, SMTP_EHLO);
- return CURLE_OK;
+ return result;
}
static CURLcode smtp_state_helo(struct connectdata *conn)
/* Send the HELO command */
result = Curl_pp_sendf(&smtpc->pp, "HELO %s", smtpc->domain);
- if(result)
- return result;
-
- state(conn, SMTP_HELO);
+ if(!result)
+ state(conn, SMTP_HELO);
- return CURLE_OK;
+ return result;
}
static CURLcode smtp_state_starttls(struct connectdata *conn)
Curl_safefree(auth);
Curl_safefree(size);
- if(result)
- return result;
-
- state(conn, SMTP_MAIL);
+ if(!result)
+ state(conn, SMTP_MAIL);
return result;
}
/* Send the DATA command */
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "DATA");
- if(result)
- return result;
-
- state(conn, SMTP_DATA);
+ if(!result)
+ state(conn, SMTP_DATA);
}
return result;