]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
The changes in #515 leaked memory and left dead code.
authorBrian Wellington <source@isc.org>
Fri, 13 Oct 2000 23:21:17 +0000 (23:21 +0000)
committerBrian Wellington <source@isc.org>
Fri, 13 Oct 2000 23:21:17 +0000 (23:21 +0000)
bin/named/update.c
bin/named/zoneconf.c
lib/dns/zoneconf.c

index 6df5bbc7a29906e7b5db8084657d017094832c4f..53fd1fbb3136dcbf00e86cfba000b36f1e6ab10b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: update.c,v 1.65 2000/09/29 03:25:23 marka Exp $ */
+/* $Id: update.c,v 1.66 2000/10/13 23:21:17 bwelling Exp $ */
 
 #include <config.h>
 
@@ -2374,6 +2374,9 @@ update_action(isc_task_t *task, isc_event_t *event) {
        if (db != NULL)
                dns_db_detach(&db);
 
+       if (ssutable != NULL)
+               dns_ssutable_detach(&ssutable);
+
        if (zone != NULL)
                dns_zone_detach(&zone);
 
index ed22184f5e9121dbeb008b8ea6008a29a66e5030..d6f9fd57aeed8da477474c005ac12681cee86b0b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zoneconf.c,v 1.61 2000/08/29 03:48:00 marka Exp $ */
+/* $Id: zoneconf.c,v 1.62 2000/10/13 23:21:16 bwelling Exp $ */
 
 #include <config.h>
 
@@ -342,15 +342,9 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
                                          dns_zone_setupdateacl,
                                          dns_zone_clearupdateacl));
 
-               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;
-                       dns_ssutable_attach(ssutable, &newssutable);
-                       dns_zone_setssutable(zone, newssutable);
-               }
+               if (result == ISC_R_SUCCESS)
+                       dns_zone_setssutable(zone, ssutable);
 
                result = dns_c_zone_getsigvalidityinterval(czone, &uintval);
                if (result != ISC_R_SUCCESS && cview != NULL)
index ed22184f5e9121dbeb008b8ea6008a29a66e5030..d6f9fd57aeed8da477474c005ac12681cee86b0b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zoneconf.c,v 1.61 2000/08/29 03:48:00 marka Exp $ */
+/* $Id: zoneconf.c,v 1.62 2000/10/13 23:21:16 bwelling Exp $ */
 
 #include <config.h>
 
@@ -342,15 +342,9 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
                                          dns_zone_setupdateacl,
                                          dns_zone_clearupdateacl));
 
-               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;
-                       dns_ssutable_attach(ssutable, &newssutable);
-                       dns_zone_setssutable(zone, newssutable);
-               }
+               if (result == ISC_R_SUCCESS)
+                       dns_zone_setssutable(zone, ssutable);
 
                result = dns_c_zone_getsigvalidityinterval(czone, &uintval);
                if (result != ISC_R_SUCCESS && cview != NULL)