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

Matthijs Mekking matthijs at nlnetlabs.nl
Mon Oct 11 16:28:06 CEST 2010


Author: matthijs
Date: 2010-10-11 16:28:06 +0200 (Mon, 11 Oct 2010)
New Revision: 4077

Modified:
   trunk/OpenDNSSEC/signer/src/util/util.c
Log:
critical situations...



Modified: trunk/OpenDNSSEC/signer/src/util/util.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/util/util.c	2010-10-11 14:11:39 UTC (rev 4076)
+++ trunk/OpenDNSSEC/signer/src/util/util.c	2010-10-11 14:28:06 UTC (rev 4077)
@@ -134,12 +134,14 @@
     if (status != LDNS_STATUS_OK) {
         ldns_buffer_free(rr1_buf);
         ldns_buffer_free(rr2_buf);
+        /* critical */
         return status;
     }
     status = ldns_rr2buffer_wire_canonical(rr2_buf, rr2, LDNS_SECTION_ANY);
     if (status != LDNS_STATUS_OK) {
         ldns_buffer_free(rr1_buf);
         ldns_buffer_free(rr2_buf);
+        /* critical */
         return status;
     }
     *cmp = ldns_rr_compare_wire(rr1_buf, rr2_buf);
@@ -169,6 +171,7 @@
     rr_ttl = ldns_rr_ttl(rr);
     status = util_dnssec_rrs_compare(rrs->rr, rr, &cmp);
     if (status != LDNS_STATUS_OK) {
+        /* critical */
         return status;
     }
 
@@ -210,5 +213,5 @@
         se_log_warning("adding duplicate RR?");
         return LDNS_STATUS_NO_DATA;
     }
-    return status;
+    return LDNS_STATUS_OK;
 }




More information about the Opendnssec-commits mailing list