diff options
-rw-r--r-- | usr.sbin/bind/lib/dns/dispatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |