]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
bugfix from olafur
authorJelte Jansen <jelte@NLnetLabs.nl>
Thu, 25 Jun 2009 16:31:08 +0000 (16:31 +0000)
committerJelte Jansen <jelte@NLnetLabs.nl>
Thu, 25 Jun 2009 16:31:08 +0000 (16:31 +0000)
Changelog
rr.c

index 2a79c500e921e12a0cf2b03c2d13c2ae2c9686d1..74f41021b8759570e2307e77587dd4902d5c0d44 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,9 @@
+x.x.x
+       Bugfixes:
+       * ldns_is_rrset did not go through the complete rrset, but
+          only compared the first two records. Thanks to Olafur
+          Gudmundsson for report and patch
+
 1.5.1
        Example tools:
        * ldns-signzone was broken in 1.5.0 for multiple keys, this
diff --git a/rr.c b/rr.c
index 7efa3dc3243e8f9e203747f50643a39f64b301e9..d17dff713b7ca651261a4d8cbca5b9ab38081bbe 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -1094,7 +1094,7 @@ ldns_is_rrset(ldns_rr_list *rr_list)
 
        /* compare these with the rest of the rr_list, start with 1 */
        for (i = 1; i < ldns_rr_list_rr_count(rr_list); i++) {
-               tmp = ldns_rr_list_rr(rr_list, 1);
+               tmp = ldns_rr_list_rr(rr_list, i);
                if (t != ldns_rr_get_type(tmp)) {
                        return false;
                }