From: djm Date: Thu, 10 Jul 2008 07:42:14 +0000 (+0000) Subject: retry port allocation on all errors, not just EADDRINUSE; ok jakob@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=939aedb88476b83bf52754592e490912701e9d33;p=openbsd retry port allocation on all errors, not just EADDRINUSE; ok jakob@ --- diff --git a/usr.sbin/bind/lib/dns/dispatch.c b/usr.sbin/bind/lib/dns/dispatch.c index 99d5b93af2b..341798e29e7 100644 --- a/usr.sbin/bind/lib/dns/dispatch.c +++ b/usr.sbin/bind/lib/dns/dispatch.c @@ -1933,7 +1933,7 @@ dispatch_createudp(dns_dispatchmgr_t *mgr, isc_socketmgr_t *sockmgr, isc_sockaddr_setport(&localaddr_bound, 0); result = create_socket(sockmgr, &localaddr_bound, &sock); - if (result == ISC_R_ADDRINUSE) { + if (result != ISC_R_SUCCESS) { if (++k == 1024) attributes &= ~DNS_DISPATCHATTR_RANDOMPORT; goto getsocket;