mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
After the first attempt to lookup an address, Csocket already created the socket used for communicating. Since at this point it wasn't yet known whether we will yield a IPv4 or IPv6 address, Csocket just always used IPv4. This would then later fail to connect() with 'Address family not supported by protocol'. This patch fixes this by creating the socket fd only when the DNS lookup completed successfully. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1556 726aef4b-f618-498e-8847-2d620e286838
52 KiB
52 KiB