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

Rickard Bellgrim rickard.bellgrim at iis.se
Thu Aug 5 11:34:03 CEST 2010


Author: rb
Date: 2010-08-05 11:34:03 +0200 (Thu, 05 Aug 2010)
New Revision: 3643

Modified:
   trunk/OpenDNSSEC/signer/src/signer/rrset.c
Log:
Some minor optimization


Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-08-04 09:19:11 UTC (rev 3642)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-08-05 09:34:03 UTC (rev 3643)
@@ -384,16 +384,15 @@
         return 0;
     }
 
+    if (sc && sc->sig_refresh_interval) {
+        refresh = (uint32_t) (signtime + 
+            duration2time(sc->sig_refresh_interval));
+    }
+
     /* check freshness of existing signatures */
     rrs = rrset->rrsigs;
     while (rrs) {
         expiration = ldns_rdf2native_int32(ldns_rr_rrsig_expiration(rrs->rr));
-        if (sc->sig_refresh_interval) {
-            refresh = (uint32_t) (signtime +
-                duration2time(sc->sig_refresh_interval));
-        } else {
-            refresh = 0;
-        }
 
         if (!refresh || expiration < refresh) {
             /* this is it */




More information about the Opendnssec-commits mailing list