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

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Nov 23 10:53:10 CET 2010


Author: matthijs
Date: 2010-11-23 10:53:09 +0100 (Tue, 23 Nov 2010)
New Revision: 4205

Modified:
   trunk/OpenDNSSEC/signer/src/signer/rrset.c
Log:
TTL of signature is not changed
Pivotal Story: 6619421

When deciding if we need to drop the signature, also check on TTL in rr compare.



Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-11-23 09:23:11 UTC (rev 4204)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-11-23 09:53:09 UTC (rev 4205)
@@ -107,8 +107,13 @@
         if (rrs1->rr && rrs2->rr) {
             status = util_dnssec_rrs_compare(rrs1->rr, rrs2->rr, &cmp);
             if (status != LDNS_STATUS_OK || cmp != 0) {
-                return 1;
+                return cmp;
             }
+            /* check ttl */
+            if (ldns_rr_ttl(rrs1->rr) != ldns_rr_ttl(rrs2->rr)) {
+                return ldns_rr_ttl(rrs1->rr) - ldns_rr_ttl(rrs2->rr);
+            }
+
             /* the same */
         } else {
             return 1;




More information about the Opendnssec-commits mailing list