]> git.sur5r.net Git - bacula/bacula/commit
Real fix of bug #1897
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 26 Jun 2012 19:11:17 +0000 (21:11 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Tue, 26 Jun 2012 19:11:17 +0000 (21:11 +0200)
commita2b1477bc19870dc52e46955f24a2215dd40137e
tree381c677fc782682b39656cc846297f6301edc7ce
parent97d219603b8d763fb96b5737f82592312452629f
Real fix of bug #1897

We are only interested in SOCK_STREAM and protocol IPPROTO_TCP
as that is the way we communicate. When we don't specify that
in the hints for getaddrinfo we also get SOCK_DGRAM/IPPROTO_UDP
and on Linux SOCK_RAW. And possibly more on other platforms.
So lets me more specific. The older fix to suppress duplicates
is also useable as a user might specify two or more names
that resolve to the same address and we want to suppress duplicates
also.
bacula/src/lib/bnet.c