]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #431: Squelch permission denied errors for tcp connect
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Feb 2021 07:24:04 +0000 (08:24 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Feb 2021 07:24:04 +0000 (08:24 +0100)
doc/Changelog
services/outside_network.c
util/netevent.c

index ce796372cefe7872ed226d8c8477cf704b66997d..c051a49ae1742da744a2a3ad15f5ce220b45daff 100644 (file)
@@ -1,3 +1,7 @@
+22 February 2021: Wouter
+       - Fix #431: Squelch permission denied errors for tcp connect
+         and udp connect from the logs, unless at high verbosity.
+
 18 February 2021: Wouter
        - Merge PR #317: ZONEMD Zone Verification, with RFC 8976 support.
          ZONEMD records are checked for zones loaded as auth-zone,
index 6c6b42ccbdb8aa184d7f07171fa83405b244abdf..3687b5fea4ed9caaf6c932bf164ef6aaa13999d0 100644 (file)
@@ -1779,6 +1779,7 @@ static int udp_connect_needs_log(int err)
 #  ifdef ENETDOWN
        case ENETDOWN:
 #  endif
+       case EPERM:
                if(verbosity >= VERB_ALGO)
                        return 1;
                return 0;
index 5a71a82e4dfb262e0857f3fce1193638bc08bd5a..d55458d6d31a835992ad41e1d109962fba551f77 100644 (file)
@@ -302,7 +302,7 @@ udp_send_errno_needs_log(struct sockaddr* addr, socklen_t addrlen)
                /* 'Cannot assign requested address' also when disconnected */
                || (errno == EADDRNOTAVAIL)
 #  endif
-               ) && verbosity < VERB_DETAIL)
+               ) && verbosity < VERB_ALGO)
                return 0;
 #  ifdef EADDRINUSE
        /* If SO_REUSEADDR is set, we could try to connect to the same server