+ 350. [bug] Also-notify lists specified in the global options
+ block were not correctly reference counted, causing
+ a memory leak.
+
344. [bug] When shutting down, lwresd sometimes tried
to shut down its client tasks twice,
triggering an assertion.
* SOFTWARE.
*/
-/* $Id: confview.c,v 1.36 2000/06/09 22:13:23 brister Exp $ */
+/* $Id: confview.c,v 1.36.2.1 2000/07/25 22:47:37 gson Exp $ */
#include <config.h>
{
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(ipl != NULL);
-
- *ipl = view->also_notify;
- return (*ipl == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
+ if (view->also_notify == NULL)
+ return (ISC_R_NOTFOUND);
+
+ dns_c_iplist_attach(view->also_notify, ipl);
+ return (ISC_R_SUCCESS);
}
* SOFTWARE.
*/
-/* $Id: confzone.c,v 1.47 2000/06/05 09:17:09 brister Exp $ */
+/* $Id: confzone.c,v 1.47.2.1 2000/07/25 22:47:39 gson Exp $ */
#include <config.h>
}
if (p != NULL) {
- *retval = p;
+ dns_c_iplist_attach(p, retval);
res = ISC_R_SUCCESS;
} else {
res = ISC_R_NOTFOUND;
* SOFTWARE.
*/
-/* $Id: zoneconf.c,v 1.43 2000/06/22 21:54:57 tale Exp $ */
+/* $Id: zoneconf.c,v 1.43.2.1 2000/07/25 22:47:35 gson Exp $ */
#include <config.h>
result = dns_c_view_getalsonotify(cview, &iplist);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getalsonotify(cctx, &iplist);
- if (result == ISC_R_SUCCESS)
- RETERR(dns_zone_setalsonotify(zone, iplist->ips,
- iplist->nextidx));
- else
+ if (result == ISC_R_SUCCESS) {
+ result = dns_zone_setalsonotify(zone, iplist->ips,
+ iplist->nextidx);
+ dns_c_iplist_detach(&iplist);
+ if (result != ISC_R_SUCCESS)
+ return (result);
+
+ } else
RETERR(dns_zone_setalsonotify(zone, NULL, 0));
RETERR(configure_zone_acl(czone, cctx, cview, ac, zone,