2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

1950. [port] Solaris 2.5.1 and earlier cannot bind() then connect()

a TCP socket. This prevents the source address being
                        set for TCP connections. [RT #15628]
This commit is contained in:
Mark Andrews
2006-01-04 04:15:55 +00:00
parent e9733bc599
commit 2b66a51a7d
8 changed files with 63 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.323 2006/01/04 00:37:24 marka Exp $ */
/* $Id: resolver.c,v 1.324 2006/01/04 04:14:39 marka Exp $ */
/*! \file */
@@ -1070,9 +1070,11 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
if (result != ISC_R_SUCCESS)
goto cleanup_query;
#ifndef BROKEN_TCP_BIND_BEFORE_CONNECT
result = isc_socket_bind(query->tcpsocket, &addr);
if (result != ISC_R_SUCCESS)
goto cleanup_socket;
#endif
/*
* A dispatch will be created once the connect succeeds.