$NetBSD: patch-pdns_dnsparser.cc,v 1.1 2013/05/09 20:06:53 joerg Exp $ --- pdns/dnsparser.cc.orig 2013-05-09 15:25:35.000000000 +0000 +++ pdns/dnsparser.cc @@ -88,7 +88,7 @@ static const string EncodeDNSLabel(const return ret; } -shared_ptr DNSRecordContent::unserialize(const string& qname, uint16_t qtype, const string& serialized) +boost::shared_ptr DNSRecordContent::unserialize(const string& qname, uint16_t qtype, const string& serialized) { dnsheader dnsheader; memset(&dnsheader, 0, sizeof(dnsheader)); @@ -122,7 +122,7 @@ shared_ptr DNSRecordCo memcpy(&packet[pos], serialized.c_str(), serialized.size()); pos+=(uint16_t)serialized.size(); MOADNSParser mdp((char*)&*packet.begin(), (unsigned int)packet.size()); - shared_ptr ret= mdp.d_answers.begin()->first.d_content; + boost::shared_ptr ret= mdp.d_answers.begin()->first.d_content; ret->header.d_type=ret->d_qtype; ret->label=mdp.d_answers.begin()->first.d_label; ret->header.d_ttl=mdp.d_answers.begin()->first.d_ttl;