properly iterate over the linked list.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 27 Nov 2011 11:27:20 +0000 (12:27 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 27 Nov 2011 11:27:20 +0000 (12:27 +0100)
citadel/modules/smtp/serv_smtpeventclient.c

index f790386cd44617c37acdd3d20b4766868760c8ee..f6a4116492b4fb662543e3e8a3921be585f78fad 100644 (file)
@@ -396,7 +396,7 @@ eNextState smtp_resolve_mx_record_done(AsyncIO *IO)
                        p->Host = SendMsg->node;
                                
                        *pp = p;
-                       pp = &p;
+                       pp = &p->Next;
                }
                SendMsg->CXFlags   = SendMsg->CXFlags & F_DIRECT;
        }