]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 15 Aug 2000 01:30:34 +0000 (01:30 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 15 Aug 2000 01:30:34 +0000 (01:30 +0000)
On send, treat EPERM like ISC_R_HOSTUNREACH.  send() seems to return EPERM
on Linux when firewall rules block the send.

lib/isc/unix/socket.c

index 688b112f1cb54f7e8d22c6569fc9f1f855c03eca..9f33588cd34ee9e85c8aa42d0af68ae3ea9227a9 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.142.2.2 2000/07/10 19:46:31 bwelling Exp $ */
+/* $Id: socket.c,v 1.142.2.3 2000/08/15 01:30:34 gson Exp $ */
 
 #include <config.h>
 
@@ -900,6 +900,7 @@ doio_send(isc_socket_t *sock, isc_socketevent_t *dev) {
                ALWAYS_HARD(EHOSTUNREACH, ISC_R_HOSTUNREACH);
                ALWAYS_HARD(ENOBUFS, ISC_R_NORESOURCES);
                ALWAYS_HARD(EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL);
+               ALWAYS_HARD(EPERM, ISC_R_HOSTUNREACH);
 
 #undef SOFT_OR_HARD
 #undef ALWAYS_HARD