diff --git a/rr.c b/rr.c index 95d07d31..1a9d62af 100644 --- a/rr.c +++ b/rr.c @@ -1264,6 +1264,7 @@ ldns_is_rrset(const ldns_rr_list *rr_list) { ldns_rr_type t; ldns_rr_class c; + uint32_t l; ldns_rdf *o; ldns_rr *tmp; size_t i; @@ -1276,6 +1277,7 @@ ldns_is_rrset(const ldns_rr_list *rr_list) t = ldns_rr_get_type(tmp); c = ldns_rr_get_class(tmp); + l = ldns_rr_ttl(tmp); o = ldns_rr_owner(tmp); /* compare these with the rest of the rr_list, start with 1 */ @@ -1287,7 +1289,10 @@ ldns_is_rrset(const ldns_rr_list *rr_list) if (c != ldns_rr_get_class(tmp)) { return false; } - if (ldns_rdf_compare(o, ldns_rr_owner(tmp)) != 0) { + if (l != ldns_rr_ttl(tmp)) { + return false; + } + if (ldns_dname_compare(o, ldns_rr_owner(tmp)) != 0) { return false; } }