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

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Aug 31 12:53:52 CEST 2010


Author: matthijs
Date: 2010-08-31 12:53:52 +0200 (Tue, 31 Aug 2010)
New Revision: 3837

Modified:
   trunk/OpenDNSSEC/signer/src/signer/rrset.c
Log:
fix warning unsigned signed comparison



Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-08-31 10:21:40 UTC (rev 3836)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-08-31 10:53:52 UTC (rev 3837)
@@ -403,7 +403,8 @@
         expiration = ldns_rdf2native_int32(ldns_rr_rrsig_expiration(rrs->rr));
         inception = ldns_rdf2native_int32(ldns_rr_rrsig_inception(rrs->rr));
 
-        if (!refresh || expiration < refresh || inception > signtime) {
+        if (!refresh || expiration < refresh ||
+            inception > (uint32_t) signtime) {
             /* this is it */
             se_log_debug("refresh signature for RRset[%i] (refresh=%u, "
                 "expiration=%u)", rrset->rr_type, refresh, expiration);




More information about the Opendnssec-commits mailing list