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

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Oct 12 12:06:09 CEST 2010


Author: matthijs
Date: 2010-10-12 12:06:08 +0200 (Tue, 12 Oct 2010)
New Revision: 4082

Modified:
   trunk/OpenDNSSEC/signer/src/signer/zonedata.c
Log:
dont default internal serial to inbound serial



Modified: trunk/OpenDNSSEC/signer/src/signer/zonedata.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/zonedata.c	2010-10-12 08:47:26 UTC (rev 4081)
+++ trunk/OpenDNSSEC/signer/src/signer/zonedata.c	2010-10-12 10:06:08 UTC (rev 4082)
@@ -839,10 +839,11 @@
     se_log_assert(zd);
     se_log_assert(sc);
 
-    if (!zd->initialized) {
-        zd->internal_serial = zd->inbound_serial;
-    }
     prev = zd->internal_serial;
+    se_log_debug("update serial: inbound=%u internal=%u outbound=%u now=%u",
+        zd->inbound_serial, zd->internal_serial, zd->outbound_serial,
+        (uint32_t) time_now());
+
     if (se_strcmp(sc->soa_serial, "unixtime") == 0) {
         soa = se_max(zd->inbound_serial, (uint32_t) time_now());
         if (!DNS_SERIAL_GT(soa, prev)) {
@@ -891,6 +892,8 @@
         update = 0x7FFFFFFF;
     }
     zd->internal_serial = (prev + update); /* automatically does % 2^32 */
+    se_log_debug("update serial: previous=%u update=%u new=%u",
+        prev, update, zd->internal_serial);
     return 0;
 }
 




More information about the Opendnssec-commits mailing list