summaryrefslogtreecommitdiff
path: root/lib/dns/rdataset.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/rdataset.c')
-rw-r--r--lib/dns/rdataset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c
index efcaeac60346..c40307e169e2 100644
--- a/lib/dns/rdataset.c
+++ b/lib/dns/rdataset.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2006, 2009, 2010 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2006, 2009-2011 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.72.18.9.10.1 2011-05-26 23:56:27 each Exp $ */
+/* $Id: rdataset.c,v 1.72.18.12 2011-06-09 00:42:48 each Exp $ */
/*! \file */
@@ -342,7 +342,7 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
count = 1;
result = dns_rdataset_first(rdataset);
INSIST(result == ISC_R_NOMORE);
- } else if (rdataset->type == 0) {
+ } else if ((rdataset->attributes & DNS_RDATASETATTR_NEGATIVE) != 0) {
/*
* This is a negative caching rdataset.
*/