mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- Fix #1254: send failed: Socket is not connected and
`remote address is 0.0.0.0 port 53`.
This commit is contained in:
parent
0eabc8d0f1
commit
376f2ade2a
2 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
24 March 2025: Wouter
|
||||||
|
- Fix #1254: `send failed: Socket is not connected` and
|
||||||
|
`remote address is 0.0.0.0 port 53`.
|
||||||
|
|
||||||
21 March 2025: Wouter
|
21 March 2025: Wouter
|
||||||
- Fix #1253: Cache entries fail to be removed from Redis cachedb
|
- Fix #1253: Cache entries fail to be removed from Redis cachedb
|
||||||
backend with unbound-control flush* +c.
|
backend with unbound-control flush* +c.
|
||||||
|
|
|
||||||
|
|
@ -369,6 +369,15 @@ udp_send_errno_needs_log(struct sockaddr* addr, socklen_t addrlen)
|
||||||
(struct sockaddr_storage*)addr, addrlen) &&
|
(struct sockaddr_storage*)addr, addrlen) &&
|
||||||
verbosity < VERB_DETAIL)
|
verbosity < VERB_DETAIL)
|
||||||
return 0;
|
return 0;
|
||||||
|
# ifdef ENOTCONN
|
||||||
|
/* For 0.0.0.0, ::0 targets it can return that socket is not connected.
|
||||||
|
* This can be ignored, and the address skipped. It remains
|
||||||
|
* possible to send there for completeness in configuration. */
|
||||||
|
if(errno == ENOTCONN && addr_is_any(
|
||||||
|
(struct sockaddr_storage*)addr, addrlen) &&
|
||||||
|
verbosity < VERB_DETAIL)
|
||||||
|
return 0;
|
||||||
|
# endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue