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

Rickard Bellgrim rickard.bellgrim at iis.se
Wed Aug 11 16:43:24 CEST 2010


Author: rb
Date: 2010-08-11 16:43:24 +0200 (Wed, 11 Aug 2010)
New Revision: 3741

Modified:
   trunk/OpenDNSSEC/signer/src/signer/domain.c
Log:
Switch the order. Have the check that will fail most often in the beginning. Minor improvement.


Modified: trunk/OpenDNSSEC/signer/src/signer/domain.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/domain.c	2010-08-11 14:32:27 UTC (rev 3740)
+++ trunk/OpenDNSSEC/signer/src/signer/domain.c	2010-08-11 14:43:24 UTC (rev 3741)
@@ -614,8 +614,8 @@
            continue;
         }
 
-        if (strncmp(sc->soa_serial, "keep", 4) != 0 &&
-            rrset->rr_type == LDNS_RR_TYPE_SOA && rrset->rrs &&
+        if (rrset->rr_type == LDNS_RR_TYPE_SOA &&
+            strncmp(sc->soa_serial, "keep", 4) != 0 && rrset->rrs &&
             rrset->rrs->rr) {
             soa_serial = ldns_rr_set_rdf(rrset->rrs->rr,
                 ldns_native2rdf_int32(LDNS_RDF_TYPE_INT32, serial),




More information about the Opendnssec-commits mailing list