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

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Nov 16 17:18:35 CET 2010


Author: matthijs
Date: 2010-11-16 17:18:35 +0100 (Tue, 16 Nov 2010)
New Revision: 4195

Modified:
   trunk/OpenDNSSEC/signer/src/signer/domain.c
Log:
print next-to-cname correctly



Modified: trunk/OpenDNSSEC/signer/src/signer/domain.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/domain.c	2010-11-16 15:25:49 UTC (rev 4194)
+++ trunk/OpenDNSSEC/signer/src/signer/domain.c	2010-11-16 16:18:35 UTC (rev 4195)
@@ -359,9 +359,18 @@
                 se_log_error("other data next to %s %s", str_name, str_type);
                 rrs = rrset->rrs;
                 while (rrs) {
-                    log_rr(rrs->rr, "next-to-CNAME: ", 2);
+                    if (rrs->rr) {
+                        log_rr(rrs->rr, "next-to-CNAME: ", 2);
+                    }
                     rrs = rrs->next;
                 }
+                rrs = rrset->add;
+                while (rrs) {
+                    if (rrs->rr) {
+                        log_rr(rrs->rr, "next-to-CNAME: ", 2);
+                    }
+                    rrs = rrs->next;
+                }
                 se_free((void*)str_name);
                 se_free((void*)str_type);
                 return 1;




More information about the Opendnssec-commits mailing list