libev-migration
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 8 Jan 2011 16:17:06 +0000 (17:17 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 8 Jan 2011 16:17:06 +0000 (17:17 +0100)
  - got the wrong interpretation of the pointer;

First mails leave citadel after a successfull DNS-Query!

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,