]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3638. [cleanup] Add the ability to handle ENOPROTOOPT in case it is
authorCurtis Blackburn <ckb@isc.org>
Wed, 28 Aug 2013 20:56:49 +0000 (15:56 -0500)
committerCurtis Blackburn <ckb@isc.org>
Wed, 28 Aug 2013 20:56:49 +0000 (15:56 -0500)
                        encountered. [RT #34668]

CHANGES
lib/isc/unix/socket.c

diff --git a/CHANGES b/CHANGES
index 7a88bb16d9a8d60a6cfa4e611b02a6b6d5d612a8..ab02767e7315abbe16600360870a853eea9decb0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+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]
 
index 00881256af49c45682659f833e6892cb236ad183..be713d67c1cabaa4858465ebc4667ee1e0a76407 100644 (file)
@@ -1845,6 +1845,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.