Commit 17c551be authored by James Brister's avatar James Brister
Browse files

Attach (instead of straight pointer copy) a returned dns_c_ipmatchlist

when pulled from a zone.
parent 292031c9
...@@ -1655,7 +1655,7 @@ dns_c_zone_getallowupd(isc_log_t *lctx, dns_c_zone_t *zone, ...@@ -1655,7 +1655,7 @@ dns_c_zone_getallowupd(isc_log_t *lctx, dns_c_zone_t *zone,
} }
if (p != NULL) { if (p != NULL) {
*retval = p; dns_c_ipmatchlist_attach(lctx, p, retval);
res = ISC_R_SUCCESS; res = ISC_R_SUCCESS;
} else { } else {
res = ISC_R_NOTFOUND; res = ISC_R_NOTFOUND;
...@@ -1703,7 +1703,7 @@ dns_c_zone_getallowquery(isc_log_t *lctx, dns_c_zone_t *zone, ...@@ -1703,7 +1703,7 @@ dns_c_zone_getallowquery(isc_log_t *lctx, dns_c_zone_t *zone,
} }
if (p != NULL) { if (p != NULL) {
*retval = p; dns_c_ipmatchlist_attach(lctx, p, retval);
res = ISC_R_SUCCESS; res = ISC_R_SUCCESS;
} else { } else {
res = ISC_R_NOTFOUND; res = ISC_R_NOTFOUND;
...@@ -1752,7 +1752,7 @@ dns_c_zone_getallowtransfer(isc_log_t *lctx, dns_c_zone_t *zone, ...@@ -1752,7 +1752,7 @@ dns_c_zone_getallowtransfer(isc_log_t *lctx, dns_c_zone_t *zone,
} }
if (p != NULL) { if (p != NULL) {
*retval = p; dns_c_ipmatchlist_attach(lctx, p, retval);
res = ISC_R_SUCCESS; res = ISC_R_SUCCESS;
} else { } else {
res = ISC_R_NOTFOUND; res = ISC_R_NOTFOUND;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment