mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix static analysis report to remove dead code from the
rpz_callback_from_iterator_module function.
This commit is contained in:
parent
c0eaadfc42
commit
bf7a2884fb
2 changed files with 10 additions and 8 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
4 October 2022: Wouter
|
||||||
|
- Fix static analysis report to remove dead code from the
|
||||||
|
rpz_callback_from_iterator_module function.
|
||||||
|
|
||||||
3 October 2022: George
|
3 October 2022: George
|
||||||
- Merge #760: PROXYv2 downstream support. (New proxy-protocol-port
|
- Merge #760: PROXYv2 downstream support. (New proxy-protocol-port
|
||||||
configuration option).
|
configuration option).
|
||||||
|
|
|
||||||
|
|
@ -2168,18 +2168,16 @@ rpz_callback_from_iterator_module(struct module_qstate* ms, struct iter_qstate*
|
||||||
|
|
||||||
lock_rw_unlock(&az->rpz_lock);
|
lock_rw_unlock(&az->rpz_lock);
|
||||||
|
|
||||||
if(raddr == NULL && z == NULL) { return NULL; }
|
if(raddr == NULL && z == NULL)
|
||||||
else if(raddr != NULL) {
|
return NULL;
|
||||||
|
|
||||||
|
if(raddr != NULL) {
|
||||||
if(z) {
|
if(z) {
|
||||||
lock_rw_unlock(&z->lock);
|
lock_rw_unlock(&z->lock);
|
||||||
}
|
}
|
||||||
return rpz_apply_nsip_trigger(ms, r, raddr, a);
|
return rpz_apply_nsip_trigger(ms, r, raddr, a);
|
||||||
} else if(z != NULL) {
|
}
|
||||||
if(raddr) {
|
return rpz_apply_nsdname_trigger(ms, r, z, &match, a);
|
||||||
lock_rw_unlock(&raddr->lock);
|
|
||||||
}
|
|
||||||
return rpz_apply_nsdname_trigger(ms, r, z, &match, a);
|
|
||||||
} else { return NULL; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dns_msg* rpz_callback_from_iterator_cname(struct module_qstate* ms,
|
struct dns_msg* rpz_callback_from_iterator_cname(struct module_qstate* ms,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue