]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/smtp_clienthandlers.c
BASE64: we don't remove \0's anymore, we need to treat auth basic strings different.
[citadel.git] / citadel / modules / smtp / smtp_clienthandlers.c
index 9e5d6119319a362aa846761dd4e3f89815b671ce..bbdbc4684f95131d5e3fa992828ef35da34722ef 100644 (file)
@@ -326,8 +326,8 @@ eNextState SMTPC_send_authplain_2(SmtpOutMsg *Msg)
        
        encodedlen = CtdlEncodeBase64(
                encoded,
-               Msg->pCurrRelay->User,
-               strlen(Msg->pCurrRelay->User),
+               Msg->pCurrRelay->Pass,
+               strlen(Msg->pCurrRelay->Pass),
                0);
 
        StrBufPlain(Msg->IO.SendBuf.Buf,