mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Attach (instead of straight pointer copy) a returned dns_c_ipmatchlist
when pulled from a zone.
This commit is contained in:
parent
292031c9fc
commit
17c551bed1
1 changed files with 3 additions and 3 deletions
|
|
@ -1655,7 +1655,7 @@ dns_c_zone_getallowupd(isc_log_t *lctx, dns_c_zone_t *zone,
|
|||
}
|
||||
|
||||
if (p != NULL) {
|
||||
*retval = p;
|
||||
dns_c_ipmatchlist_attach(lctx, p, retval);
|
||||
res = ISC_R_SUCCESS;
|
||||
} else {
|
||||
res = ISC_R_NOTFOUND;
|
||||
|
|
@ -1703,7 +1703,7 @@ dns_c_zone_getallowquery(isc_log_t *lctx, dns_c_zone_t *zone,
|
|||
}
|
||||
|
||||
if (p != NULL) {
|
||||
*retval = p;
|
||||
dns_c_ipmatchlist_attach(lctx, p, retval);
|
||||
res = ISC_R_SUCCESS;
|
||||
} else {
|
||||
res = ISC_R_NOTFOUND;
|
||||
|
|
@ -1752,7 +1752,7 @@ dns_c_zone_getallowtransfer(isc_log_t *lctx, dns_c_zone_t *zone,
|
|||
}
|
||||
|
||||
if (p != NULL) {
|
||||
*retval = p;
|
||||
dns_c_ipmatchlist_attach(lctx, p, retval);
|
||||
res = ISC_R_SUCCESS;
|
||||
} else {
|
||||
res = ISC_R_NOTFOUND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue