From 9ee584ecd1874c1ccca77c040f4fd6c27d1e8357 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 18 Feb 2015 21:20:00 +0200 Subject: [PATCH] Use qclass instead of hardcoded IN --- pdns/dnspacket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 1aa4532f74..67b6c3f4bf 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -310,7 +310,7 @@ void DNSPacket::wrapup() pos->content="."; pw.startRecord(pos->qname, pos->qtype.getCode(), pos->ttl, pos->qclass, (DNSPacketWriter::Place)pos->d_place); - shared_ptr drc(DNSRecordContent::mastermake(pos->qtype.getCode(), 1, pos->content)); + shared_ptr drc(DNSRecordContent::mastermake(pos->qtype.getCode(), pos->qclass, pos->content)); drc->toPacket(pw); if(pw.size() + 20U > (d_tcp ? 65535 : getMaxReplyLen())) { // 20 = room for EDNS0 pw.rollback(); -- 2.47.2