Permalink
Browse files

Use qclass instead of hardcoded IN

  • Loading branch information...
1 parent 50b52c6 commit 8b582f639600c671607e98815f71be19c9d59afd @cmouse cmouse committed with cmouse Feb 18, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/dnspacket.cc
View
@@ -312,7 +312,7 @@ void DNSPacket::wrapup()
pos->content=".";
pw.startRecord(pos->qname, pos->qtype.getCode(), pos->ttl, pos->qclass, (DNSPacketWriter::Place)pos->d_place);
- shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(pos->qtype.getCode(), 1, pos->content));
+ shared_ptr<DNSRecordContent> 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();

0 comments on commit 8b582f6

Please sign in to comment.