diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2022-10-22 16:37:58 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2022-10-22 16:37:58 +0000 |
commit | f436c867a5d87b7e526d9033e46a6957012572bb (patch) | |
tree | cea4910925a2d4648562f153399dad098ab9d5bf /sbin/unwind/libunbound/services/authzone.c | |
parent | 74156a5ec5fe13c01a701bc613c768473dcd735a (diff) |
sync to unbound 1.17.0; heavy lifting by sthen
Diffstat (limited to 'sbin/unwind/libunbound/services/authzone.c')
-rw-r--r-- | sbin/unwind/libunbound/services/authzone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/unwind/libunbound/services/authzone.c b/sbin/unwind/libunbound/services/authzone.c index b9e0b11ef3b..6de1e431909 100644 --- a/sbin/unwind/libunbound/services/authzone.c +++ b/sbin/unwind/libunbound/services/authzone.c @@ -3699,7 +3699,7 @@ addr_matches_master(struct auth_master* master, struct sockaddr_storage* addr, /* compare address (but not port number, that is the destination * port of the master, the port number of the received notify is * allowed to by any port on that master) */ - if(extstrtoaddr(master->host, &a, &alen) && + if(extstrtoaddr(master->host, &a, &alen, UNBOUND_DNS_PORT) && sockaddr_cmp_addr(addr, addrlen, &a, alen)==0) { *fromhost = master; return 1; @@ -5381,7 +5381,7 @@ xfr_transfer_lookup_host(struct auth_xfer* xfr, struct module_env* env) struct edns_data edns; sldns_buffer* buf = env->scratch_buffer; if(!master) return 0; - if(extstrtoaddr(master->host, &addr, &addrlen)) { + if(extstrtoaddr(master->host, &addr, &addrlen, UNBOUND_DNS_PORT)) { /* not needed, host is in IP addr format */ return 0; } @@ -6572,7 +6572,7 @@ xfr_probe_lookup_host(struct auth_xfer* xfr, struct module_env* env) struct edns_data edns; sldns_buffer* buf = env->scratch_buffer; if(!master) return 0; - if(extstrtoaddr(master->host, &addr, &addrlen)) { + if(extstrtoaddr(master->host, &addr, &addrlen, UNBOUND_DNS_PORT)) { /* not needed, host is in IP addr format */ return 0; } |