mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 23:57:30 -04:00
1660. [bug] win32: connection_reset_fix() was being called
unconditionally. [RT #11595]
This commit is contained in:
parent
bb50eb10ed
commit
99ba7fc5ff
2 changed files with 10 additions and 7 deletions
3
CHANGES
3
CHANGES
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
1661. [placeholder] rt11582
|
||||
|
||||
1660 [placeholder] rt11595
|
||||
1660. [bug] win32: connection_reset_fix() was being called
|
||||
unconditionally. [RT #11595]
|
||||
|
||||
1659. [cleanup] Cleanup some messages that were referring to KEY vs
|
||||
DNSKEY, NXT vs NSEC and SIG vs RRSIG.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.32 2004/05/17 03:15:59 marka Exp $ */
|
||||
/* $Id: socket.c,v 1.33 2004/06/18 01:14:59 marka Exp $ */
|
||||
|
||||
/* This code has been rewritten to take advantage of Windows Sockets
|
||||
* I/O Completion Ports and Events. I/O Completion Ports is ONLY
|
||||
|
|
@ -1846,11 +1846,13 @@ isc_socket_create(isc_socketmgr_t *manager, int pf, isc_sockettype_t type,
|
|||
switch (type) {
|
||||
case isc_sockettype_udp:
|
||||
sock->fd = socket(pf, SOCK_DGRAM, IPPROTO_UDP);
|
||||
result = connection_reset_fix(sock->fd);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
closesocket(sock->fd);
|
||||
free_socket(&sock);
|
||||
return (result);
|
||||
if (sock->fd != INVALID_SOCKET) {
|
||||
result = connection_reset_fix(sock->fd);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
closesocket(sock->fd);
|
||||
free_socket(&sock);
|
||||
return (result);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case isc_sockettype_tcp:
|
||||
|
|
|
|||
Loading…
Reference in a new issue