[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4063 - trunk/OpenDNSSEC/signer/src/signer

Matthijs Mekking matthijs at nlnetlabs.nl
Wed Oct 6 15:27:14 CEST 2010


Author: matthijs
Date: 2010-10-06 15:27:14 +0200 (Wed, 06 Oct 2010)
New Revision: 4063

Modified:
   trunk/OpenDNSSEC/signer/src/signer/rrset.c
Log:
clone new rrsig to rrset



Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-10-06 12:47:19 UTC (rev 4062)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-10-06 13:27:14 UTC (rev 4063)
@@ -727,7 +727,8 @@
         walk_rrsigs = new_rrsigs;
         while (walk_rrsigs) {
             if (walk_rrsigs->rr) {
-                error = rrsigs_add_sig(rrset->rrsigs, walk_rrsigs->rr,
+                error = rrsigs_add_sig(rrset->rrsigs,
+                    ldns_rr_clone(walk_rrsigs->rr),
                     walk_rrsigs->key_locator, walk_rrsigs->key_flags);
                 if (error) {
                     se_log_error("error adding RRSIG to RRset[%i]",
@@ -737,9 +738,6 @@
                     rrsigs_cleanup(new_rrsigs);
                     return 1;
                 }
-                /* this RRSIG is now in the RRset, don't clean it up */
-                walk_rrsigs->rr = NULL;
-
                 rrset->rrsig_count += 1;
                 rrset_log_rr(walk_rrsigs->rr, "+RRSIG", 6);
                 newsigs++;




More information about the Opendnssec-commits mailing list