summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/answer.c
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2014-02-04 01:54:01 +0000
committerbrad <brad@openbsd.org>2014-02-04 01:54:01 +0000
commitcdb6bbdd42fb87066ad2d2cf0052b717b64aef68 (patch)
treef686977cb9e5eef6c2a9d95f412762f29d97198f /usr.sbin/nsd/answer.c
parentreduce the length of some pool names. ok deraadt guenther mpi (diff)
downloadwireguard-openbsd-cdb6bbdd42fb87066ad2d2cf0052b717b64aef68.tar.xz
wireguard-openbsd-cdb6bbdd42fb87066ad2d2cf0052b717b64aef68.zip
update to NSD 4.0.1, ok sthen@
Diffstat (limited to 'usr.sbin/nsd/answer.c')
-rw-r--r--usr.sbin/nsd/answer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/answer.c b/usr.sbin/nsd/answer.c
index 0377f0b5859..be43c4c6cd1 100644
--- a/usr.sbin/nsd/answer.c
+++ b/usr.sbin/nsd/answer.c
@@ -34,7 +34,7 @@ answer_add_rrset(answer_type *answer, rr_section_type section,
/* Don't add an RRset multiple times. */
for (i = 0; i < answer->rrset_count; ++i) {
if (answer->rrsets[i] == rrset &&
- answer->domains[i] == domain) {
+ answer->domains[i]->number == domain->number) {
if (section < answer->section[i]) {
answer->section[i] = section;
return 1;