[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4116 - trunk/OpenDNSSEC/enforcer/ksm

Rickard Bellgrim rickard.bellgrim at iis.se
Fri Oct 15 11:09:12 CEST 2010


Author: rb
Date: 2010-10-15 11:09:11 +0200 (Fri, 15 Oct 2010)
New Revision: 4116

Modified:
   trunk/OpenDNSSEC/enforcer/ksm/ksm_list.c
Log:
I got a double free crash 


Modified: trunk/OpenDNSSEC/enforcer/ksm/ksm_list.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/ksm/ksm_list.c	2010-10-15 07:14:19 UTC (rev 4115)
+++ trunk/OpenDNSSEC/enforcer/ksm/ksm_list.c	2010-10-15 09:09:11 UTC (rev 4116)
@@ -131,6 +131,9 @@
     DusFree(sql);
     DbFreeRow(row);
     DbStringFree(temp_date);
+    sql = NULL;
+    row = NULL;
+    temp_date = NULL;
 
     /* List repos which need a backup */
     StrAppend(&sql2, "select s.name, s.requirebackup from keypairs k, securitymodules s ");
@@ -178,6 +181,8 @@
 
     /* List repos which need a backup commit */
     sql2 = NULL;
+    row2 = NULL;
+    temp_repo = NULL;
     StrAppend(&sql2, "select s.name from keypairs k, securitymodules s ");
     StrAppend(&sql2, "where s.id = k.securitymodule_id ");
     if (repo_id != -1) {




More information about the Opendnssec-commits mailing list