]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dns_c_view_getalsonotify() should attach the list
authorAndreas Gustafsson <source@isc.org>
Tue, 25 Jul 2000 22:38:29 +0000 (22:38 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 25 Jul 2000 22:38:29 +0000 (22:38 +0000)
like both the global and per-zone counterparts now do

lib/dns/config/confview.c

index 9e9bf2eb4826c2d9ef75b8050e7533952b204627..fec3f3aa06453a5a40b24458c9c9e08a17e83558 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: confview.c,v 1.38 2000/07/25 17:55:40 brister Exp $ */
+/* $Id: confview.c,v 1.39 2000/07/25 22:38:29 gson Exp $ */
 
 #include <config.h>
 
@@ -1063,10 +1063,12 @@ dns_c_view_getalsonotify(dns_c_view_t *view,
 {
        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);
 }