aboutsummaryrefslogtreecommitdiff
path: root/contrib/bind9/lib/dns/rdataset.c
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-04-05 04:29:35 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-04-05 04:29:35 +0000
commitd0f6280db790de2ad69bd01a1275e350cbd2840d (patch)
treecf3176c0801c94a4f298353cc450f10cf1aae9c0 /contrib/bind9/lib/dns/rdataset.c
parent8931e524bfb5c6a10894f704e3eaa05ee5d9fa77 (diff)
parent42d3eba523963ab015ac451eeea0788b11631c94 (diff)
downloadsrc-d0f6280db790de2ad69bd01a1275e350cbd2840d.tar.gz
src-d0f6280db790de2ad69bd01a1275e350cbd2840d.zip
Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes.
Notes
Notes: svn path=/head/; revision=233914
Diffstat (limited to 'contrib/bind9/lib/dns/rdataset.c')
-rw-r--r--contrib/bind9/lib/dns/rdataset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/bind9/lib/dns/rdataset.c b/contrib/bind9/lib/dns/rdataset.c
index 627f20de1bf1..8c865498ef37 100644
--- a/contrib/bind9/lib/dns/rdataset.c
+++ b/contrib/bind9/lib/dns/rdataset.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataset.c,v 1.86.148.4 2011-06-08 23:02:42 each Exp $ */
+/* $Id$ */
/*! \file */
@@ -442,11 +442,11 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
j = val % count;
for (i = 0; i < count; i++) {
if (order != NULL)
- sorted[j].key = (*order)(&shuffled[i],
+ sorted[i].key = (*order)(&shuffled[j],
order_arg);
else
- sorted[j].key = 0; /* Unused */
- sorted[j].rdata = &shuffled[i];
+ sorted[i].key = 0; /* Unused */
+ sorted[i].rdata = &shuffled[j];
j++;
if (j == count)
j = 0; /* Wrap around. */