From: Matthijs Mekking Date: Fri, 13 Nov 2009 09:19:24 +0000 (+0000) Subject: inherit class when creating signatures X-Git-Tag: release-1.6.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a686bf0b31ae15166cb98382b0979dd4db3c2f76;p=thirdparty%2Fldns.git inherit class when creating signatures --- diff --git a/Changelog b/Changelog index 9d4b213d..10c45c2a 100644 --- 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. diff --git a/dnssec_sign.c b/dnssec_sign.c index 482120a9..2b5cad9c 100644 --- a/dnssec_sign.c +++ b/dnssec_sign.c @@ -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(