[PATCH] fix getaddrinfo usage

Russ Allbery rra at stanford.edu
Mon Aug 28 02:04:03 UTC 2006

Marco d'Itri <md at Linux.IT> writes:

> This patch fixes a problem with the IPv6-mode address resolution
> in innfeed. The upstream code neglects to tell getaddrinfo(3) that it
> wants a SOCK_STREAM; thus each address for the hostname thrice gets
> reported thrice: one with each of SOCK_STREAM, SOCK_DGRAM and
> SOCK_RAW. Therefore an address that is unreachable will be tried
> three times before innfeed goes on to try another address.

> This patch amends the getaddrinfo(3) call to request a SOCK_STREAM
> address.

> Created by Henning Makholm <henning at makholm.net> on 2005-10-30 while
> investigating Debian bug #336264. This patch is in the public domain.

Thanks, applied.  CURRENT was already fixed in a more thorough fashion.

Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

More information about the inn-workers mailing list