smtp: Fixed login denied with a RFC-821 based server
authorSteve Holme <steve_holme@hotmail.com>
Mon, 31 Mar 2014 21:59:46 +0000 (22:59 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 1 Apr 2014 06:20:19 +0000 (07:20 +0100)
In addition to commit fe260b75e7 fixed the same issue for RFC-821 based
SMTP servers and allow the credientials to be given to curl even though
they are not used with the server.

lib/smtp.c

index cc1f2ad..db6a722 100644 (file)
@@ -721,8 +721,7 @@ static CURLcode smtp_state_ehlo_resp(struct connectdata *conn, int smtpcode,
   (void)instate; /* no use for this yet */
 
   if(smtpcode/100 != 2 && smtpcode != 1) {
-    if((data->set.use_ssl <= CURLUSESSL_TRY || conn->ssl[FIRSTSOCKET].use) &&
-     !conn->bits.user_passwd)
+    if(data->set.use_ssl <= CURLUSESSL_TRY || conn->ssl[FIRSTSOCKET].use)
       result = smtp_perform_helo(conn);
     else {
       failf(data, "Remote access denied: %d", smtpcode);