]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix comparison between signed and unsigned by using uint32_t for inception on INCEPTI...
authorAki Tuomi <cmouse@desteem.org>
Wed, 28 Aug 2013 18:15:35 +0000 (21:15 +0300)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 5 Dec 2013 15:37:40 +0000 (16:37 +0100)
pdns/serialtweaker.cc

index f824f87cfbe61c3e567b20a663dfd7888abcb0e7..1e65d3f75b664c4453d0636ec6dc4eba872b4244 100644 (file)
@@ -80,7 +80,7 @@ uint32_t calculateEditSoa(SOAData sd, const string& kind) {
     return time(0);
   }
   else if(pdns_iequals(kind,"INCEPTION-EPOCH")) {
-    time_t inception = getStartOfWeek();
+    uint32_t inception = getStartOfWeek();
     if (sd.serial < inception)
       return inception;
   }