2509. [bug] Specifying a fixed query source port was broken.

[RT #19051]
This commit is contained in:
Mark Andrews
2008-12-10 12:47:05 +00:00
parent fa948affa0
commit 4d608cd16d
2 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2509. [bug] Specifying a fixed query source port was broken.
[RT #19051]
2506. [port] solaris: Check at configure time if
hack_shutup_pthreadonceinit is needed. [RT #19037]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dispatch.c,v 1.116.18.37 2008/09/04 00:24:41 jinmei Exp $ */
/* $Id: dispatch.c,v 1.116.18.38 2008/12/10 12:47:05 marka Exp $ */
/*! \file */
@@ -2569,6 +2569,15 @@ get_udpsocket(dns_dispatchmgr_t *mgr, dns_dispatch_t *disp,
* If this fails 1024 times, we then ask the kernel for
* choosing one.
*/
} else {
/* Allow to reuse address for non-random ports. */
result = open_socket(sockmgr, localaddr,
ISC_SOCKET_REUSEADDRESS, &sock);
if (result == ISC_R_SUCCESS)
*sockp = sock;
return (result);
}
memset(held, 0, sizeof(held));