X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fserv_smtpeventclient.c;h=f61e633f57958b72a0b89d229bae0ce33b74a52a;hb=c979a38432307a49c407933b9820226bdc348573;hp=66674b3b22fb443c10b987a39bafff1f84d8dcd7;hpb=869c309f23d4dfdf72681ae921e23b98a632a5d1;p=citadel.git diff --git a/citadel/modules/smtp/serv_smtpeventclient.c b/citadel/modules/smtp/serv_smtpeventclient.c index 66674b3b2..f61e633f5 100644 --- a/citadel/modules/smtp/serv_smtpeventclient.c +++ b/citadel/modules/smtp/serv_smtpeventclient.c @@ -656,10 +656,6 @@ void connect_one_smtpsrv(SmtpOutMsg *SendMsg) SendMsg->mx_port = DefaultMXPort; - SendMsg->IO.SendBuf.Buf = NewStrBufPlain(NULL, 1024); - SendMsg->IO.RecvBuf.Buf = NewStrBufPlain(NULL, 1024); - SendMsg->IO.IOBuf = NewStrBuf(); - SendMsg->IO.ErrMsg = SendMsg->MyQEntry->StatusMessage; /* TODO: Relay! *SendMsg->mx_user = '\0'; @@ -962,6 +958,11 @@ eNextState smtp_resolve_mx_done(void *data) AsyncIO *IO = data; SmtpOutMsg * SendMsg = IO->Data; + SendMsg->IO.SendBuf.Buf = NewStrBufPlain(NULL, 1024); + SendMsg->IO.RecvBuf.Buf = NewStrBufPlain(NULL, 1024); + SendMsg->IO.IOBuf = NewStrBuf(); + SendMsg->IO.ErrMsg = SendMsg->MyQEntry->StatusMessage; + //// connect_one_smtpsrv_xamine_result SendMsg->CurrMX = SendMsg->AllMX = IO->VParsedDNSReply; //// TODO: should we remove the current ares context??? @@ -974,7 +975,7 @@ eNextState smtp_resolve_mx_done(void *data) int resolve_mx_records(void *Ctx) { SmtpOutMsg * SendMsg = Ctx; -///TMP +/*//TMP SendMsg->IO.SendBuf.Buf = NewStrBufPlain(NULL, 1024); SendMsg->IO.RecvBuf.Buf = NewStrBufPlain(NULL, 1024); SendMsg->IO.IOBuf = NewStrBuf();