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

Matthijs Mekking matthijs at nlnetlabs.nl
Wed Oct 13 12:00:02 CEST 2010


Author: matthijs
Date: 2010-10-13 12:00:02 +0200 (Wed, 13 Oct 2010)
New Revision: 4094

Modified:
   trunk/OpenDNSSEC/signer/src/signer/zonedata.c
Log:
update outbound serial only on writing output (also see commit tools.c)



Modified: trunk/OpenDNSSEC/signer/src/signer/zonedata.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/zonedata.c	2010-10-13 09:58:58 UTC (rev 4093)
+++ trunk/OpenDNSSEC/signer/src/signer/zonedata.c	2010-10-13 10:00:02 UTC (rev 4094)
@@ -919,8 +919,7 @@
     if (!DNS_SERIAL_GT(zd->internal_serial, zd->outbound_serial)) {
         error = zonedata_update_serial(zd, sc);
     }
-    zd->outbound_serial = zd->internal_serial;
-    if (error || !zd->outbound_serial) {
+    if (error || !zd->internal_serial) {
         se_log_error("unable to sign zone data: failed to update serial");
         return 1;
     }
@@ -940,8 +939,8 @@
     node = ldns_rbtree_first(zd->domains);
     while (node && node != LDNS_RBTREE_NULL) {
         domain = (domain_type*) node->data;
-        if (domain_sign(ctx, domain, owner, sc, now, zd->outbound_serial, stats)
-            != 0) {
+        if (domain_sign(ctx, domain, owner, sc, now, zd->internal_serial,
+            stats) != 0) {
             se_log_error("unable to sign zone data: failed to sign domain");
             hsm_destroy_context(ctx);
             return 1;




More information about the Opendnssec-commits mailing list