]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/deliver.c
tidying: coverity
[user/henk/code/exim.git] / src / src / deliver.c
index 262ae454f67ba96b3c96b992044ba3c525058949..fe156c696d00f2524f2420d9603cbd929f697866 100644 (file)
@@ -4499,9 +4499,12 @@ for (delivery_count = 0; addr_remote; delivery_count++)
 
     /* Set a flag indicating whether there are further addresses that list
     the continued host. This tells the transport to leave the channel open,
-    but not to pass it to another delivery process. */
+    but not to pass it to another delivery process. We'd like to do that
+    for non-continue_transport cases too but the knowlege of which host is
+    connected to is too hard to manage.  Perhaps we need a finer-grain
+    interface to the transport. */
 
-    for (next = addr_remote; next; next = next->next)
+    for (next = addr_remote; next && !continue_more; next = next->next)
       {
       host_item *h;
       for (h = next->host_list; h; h = h->next)