]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/serv_smtpeventclient.c
libev-migration
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index f61e633f57958b72a0b89d229bae0ce33b74a52a..16b45cb774b1449408df1188f3d05a9cca9696e9 100644 (file)
@@ -632,11 +632,12 @@ void get_one_mx_host_name_done(void *Ctx,
                               int timeouts,
                               struct hostent *hostent)
 {
-       SmtpOutMsg *SendMsg = Ctx;
+       AsyncIO *IO = Ctx;
+       SmtpOutMsg *SendMsg = IO->Data;
        if ((status == ARES_SUCCESS) && (hostent != NULL) ) {
 
                        SendMsg->IO.HEnt = hostent;
-                       InitEventIO(&SendMsg->IO, SendMsg, 
+                       InitEventIO(IO, SendMsg, 
                                    SMTP_C_DispatchReadDone, 
                                    SMTP_C_DispatchWriteDone, 
                                    SMTP_C_Terminate,