]> arthur.barton.de Git - ngircd-alex.git/commit
Fix connect attempts to further IP addresses of outgoing server links
authorAlexander Barton <alex@barton.de>
Wed, 27 Oct 2010 19:59:51 +0000 (21:59 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 27 Oct 2010 19:59:51 +0000 (21:59 +0200)
commitd7ad956a06af2bde1cfcf2ed8194b6a84d69d968
treee71d48160bba2bfe7a386a93f326152f2abd297c
parente2c92900300604c000af86008dad086527a04345
Fix connect attempts to further IP addresses of outgoing server links

If a hostname resolves to more than one IP address (round-robin DNS,
IPv4 and IPv6) and an attempt to connect to the first address fails,
ngIRCd should try to connect to the 2nd address, 3rd address etc.

But because of a wrong variable used in the call to New_Server(),
the wrong server structure has been used in further connection attemps
which possibly lead to connection attempts to already connected servers.
src/ngircd/conn.c