Commit 5f80c142 authored by Brian Wellington's avatar Brian Wellington
Browse files

Don't leak memory when reloading the zone if an update-policy clause was

present in the old zone.
parent fe0de359
213. [cleanup] Don't leak memory when reloading the zone if
an update-policy clause was present in the old zone.
212. [cleanup] Added dns_message_get/settsigkey, to make TSIG
key management reasonable.
......
......@@ -225,10 +225,9 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setupdateacl,
dns_zone_clearupdateacl));
/*
* XXXAG This will fail to clear the ssutable when
* the config option is removed.
*/
dns_zone_getssutable(zone, &ssutable);
if (ssutable != NULL)
dns_ssutable_detach(&ssutable);
result = dns_c_zone_getssuauth(czone, &ssutable);
if (result == ISC_R_SUCCESS) {
dns_ssutable_t *newssutable = NULL;
......
......@@ -225,10 +225,9 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setupdateacl,
dns_zone_clearupdateacl));
/*
* XXXAG This will fail to clear the ssutable when
* the config option is removed.
*/
dns_zone_getssutable(zone, &ssutable);
if (ssutable != NULL)
dns_ssutable_detach(&ssutable);
result = dns_c_zone_getssuauth(czone, &ssutable);
if (result == ISC_R_SUCCESS) {
dns_ssutable_t *newssutable = NULL;
......
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