From: Curtis Blackburn Date: Wed, 28 Aug 2013 21:00:12 +0000 (-0500) Subject: 3638. [cleanup] Add the ability to handle ENOPROTOOPT in case it is X-Git-Tag: v9.8.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02290cd91cb99020d498f4b38ec50374b9edfc32;p=thirdparty%2Fbind9.git 3638. [cleanup] Add the ability to handle ENOPROTOOPT in case it is encountered. [RT #34668] --- diff --git a/CHANGES b/CHANGES index 5d76412d318..e227bdece1e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ - --- 9.8.6rc2 released --- +3638. [cleanup] Add the ability to handle ENOPROTOOPT in case it is + encountered. [RT #34668] 3637. [bug] 'allow-query-on' was checking the source address rather than the destination address. [RT #34590] diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index d007598e19d..e6cc3fff0fb 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -1687,6 +1687,10 @@ doio_recv(isc__socket_t *sock, isc_socketevent_t *dev) { /* HPUX 11.11 can return EADDRNOTAVAIL. */ SOFT_OR_HARD(EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL); ALWAYS_HARD(ENOBUFS, ISC_R_NORESOURCES); + /* Should never get this one but it was seen. */ +#ifdef ENOPROTOOPT + SOFT_OR_HARD(ENOPROTOOPT, ISC_R_HOSTUNREACH); +#endif /* * HPUX returns EPROTO and EINVAL on receiving some ICMP/ICMPv6 * errors.