]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
inherit class when creating signatures
authorMatthijs Mekking <matje@NLnetLabs.nl>
Fri, 13 Nov 2009 09:19:24 +0000 (09:19 +0000)
committerMatthijs Mekking <matje@NLnetLabs.nl>
Fri, 13 Nov 2009 09:19:24 +0000 (09:19 +0000)
Changelog
dnssec_sign.c

index 9d4b213d137989a973aeea0b1ebb2b6fa92ef468..10c45c2aa0f091ac4cbaed21c440286df80ae3e7 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,8 @@
 1.6.3
        * Bugfix: allow for unknown resource records in zonefile with rdlen=0.
+       * Bugfix: also mark an RR as question if it comes from the wire
+       * Bugfix: NSEC3 bitmap contained NSEC, not NSEC3
+       * Bugfix: Inherit class when creating signatures
 
 1.6.2  2009-11-12
        * Fix Makefile patch from Havard Eidnes, better install.sh usage.
index 482120a910885eb75571de4a7a0c8ad5ace703ac..2b5cad9c77b7b45ebbd4f8ba34438fec4dcf81be 100644 (file)
@@ -24,6 +24,7 @@ ldns_create_empty_rrsig(ldns_rr_list *rrset,
                         ldns_key *current_key)
 {
        uint32_t orig_ttl;
+       ldns_rr_class orig_class;
        time_t now;
        ldns_rr *current_sig;
        uint8_t label_count;
@@ -35,8 +36,10 @@ ldns_create_empty_rrsig(ldns_rr_list *rrset,
        
        /* set the type on the new signature */
        orig_ttl = ldns_rr_ttl(ldns_rr_list_rr(rrset, 0));
+       orig_class = ldns_rr_get_class(ldns_rr_list_rr(rrset, 0));
 
        ldns_rr_set_ttl(current_sig, orig_ttl);
+       ldns_rr_set_class(current_sig, orig_class);
        ldns_rr_set_owner(current_sig, 
                          ldns_rdf_clone(
                               ldns_rr_owner(