mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Merge branch '3973-dnsrps-coverity-fixes' into 'main'
silence coverity warnings Closes #3973 See merge request isc-projects/bind9!7781
This commit is contained in:
@@ -887,6 +887,7 @@ librpz_lib_open(librpz_emsg_t *emsg, void **dl_handle, const char *path) {
|
|||||||
if (new_librpz != NULL) {
|
if (new_librpz != NULL) {
|
||||||
if (dl_handle != NULL) {
|
if (dl_handle != NULL) {
|
||||||
*dl_handle = handle;
|
*dl_handle = handle;
|
||||||
|
handle = NULL;
|
||||||
}
|
}
|
||||||
return (new_librpz);
|
return (new_librpz);
|
||||||
}
|
}
|
||||||
@@ -914,6 +915,7 @@ librpz_lib_open(librpz_emsg_t *emsg, void **dl_handle, const char *path) {
|
|||||||
if (new_librpz != NULL) {
|
if (new_librpz != NULL) {
|
||||||
if (dl_handle != NULL) {
|
if (dl_handle != NULL) {
|
||||||
*dl_handle = handle;
|
*dl_handle = handle;
|
||||||
|
handle = NULL;
|
||||||
}
|
}
|
||||||
return (new_librpz);
|
return (new_librpz);
|
||||||
}
|
}
|
||||||
|
@@ -3439,7 +3439,10 @@ dnsrps_set_p(librpz_emsg_t *emsg, ns_client_t *client, dns_rpz_st_t *st,
|
|||||||
region.length = pname_buf.size;
|
region.length = pname_buf.size;
|
||||||
dns_name_fromregion(st->p_name, ®ion);
|
dns_name_fromregion(st->p_name, ®ion);
|
||||||
|
|
||||||
rpz_ready(client, p_rdatasetp);
|
result = rpz_ready(client, p_rdatasetp);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
return (false);
|
||||||
|
}
|
||||||
dns_db_attach(st->rpsdb, &p_db);
|
dns_db_attach(st->rpsdb, &p_db);
|
||||||
policy = dns_dnsrps_2policy(rpsdb->result.policy);
|
policy = dns_dnsrps_2policy(rpsdb->result.policy);
|
||||||
if (policy != DNS_RPZ_POLICY_RECORD) {
|
if (policy != DNS_RPZ_POLICY_RECORD) {
|
||||||
|
Reference in New Issue
Block a user