From: Aki Tuomi Date: Wed, 18 Feb 2015 19:20:00 +0000 (+0200) Subject: Use qclass instead of hardcoded IN X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~98^2~44^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ee584ecd1874c1ccca77c040f4fd6c27d1e8357;p=thirdparty%2Fpdns.git Use qclass instead of hardcoded IN --- 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();