summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorJelte Jansen <jelte@NLnetLabs.nl>2009-07-02 11:25:00 +0200
committerJelte Jansen <jelte@NLnetLabs.nl>2009-07-02 11:25:00 +0200
commit1f884af476f5f6d137554c9f066946735e7b96fa (patch)
tree25ec383123ef84f7fcc78a7094edb16883ab0029 /rr.c
parent043a4dede76573cf3088d4b6b0885c0e1c25ea53 (diff)
downloadldns-1f884af476f5f6d137554c9f066946735e7b96fa.tar.gz
review wouter
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rr.c b/rr.c
index 4a0722c0..161fc975 100644
--- a/rr.c
+++ b/rr.c
@@ -1397,11 +1397,11 @@ ldns_rr_compare_no_rdata(const ldns_rr *rr1, const ldns_rr *rr2)
}
if (ldns_rr_get_class(rr1) != ldns_rr_get_class(rr2)) {
- return ldns_rr_get_class(rr1) - ldns_rr_get_class(rr2);
+ return ldns_rr_get_class(rr2) - ldns_rr_get_class(rr1);
}
if (ldns_rr_get_type(rr1) != ldns_rr_get_type(rr2)) {
- return ldns_rr_get_type(rr1) - ldns_rr_get_type(rr2);
+ return ldns_rr_get_type(rr2) - ldns_rr_get_type(rr1);
}
/* offset is the owername length + ttl + type + class + rdlen == start of wire format rdata */