https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7046

William Taylor <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from William Taylor <[email protected]> ---
What Kelsey is saying is true. Ever since we upgraded to 3.4.0 the -H flag to
spamc has no effect when multiple ip addresses are returned. It always keeps
the first one it gets.

This appears to be the code that broke -H. The for loop is the old behavior. If
you comment out the tp->hosts line and un-comment the for loop you will get the
old behavior.


            /* treat all A or AAAA records of each host as one entry */
            tp->hosts[tp->nhosts++] = res;

            /* alternatively, treat multiple A or AAAA records
               of one host as individual entries */
/*
          for (addrp = res; addrp != NULL; ) {
               tp->hosts[tp->nhosts] = addrp;
               addrp = addrp->ai_next;     /* before NULLing ai_next */
               tp->hosts[tp->nhosts]->ai_next = NULL;
               tp->nhosts++;
           }
*/

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to