From: Thomas Jarosch Date: Mon, 12 Dec 2011 11:00:42 +0000 (+0100) Subject: Fix type: Boost::shared_ptr supports conversion to bool but not to char* X-Git-Tag: v1.3~46 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f16d2e9461e71951744f21d28c5460ad866e06a9;p=pingcheck Fix type: Boost::shared_ptr supports conversion to bool but not to char* --- diff --git a/src/dns/dnsresolver.cpp b/src/dns/dnsresolver.cpp index 1fcfb77..1384ba0 100644 --- a/src/dns/dnsresolver.cpp +++ b/src/dns/dnsresolver.cpp @@ -248,7 +248,7 @@ void DnsResolver::fill_resolved_ip_list( BOOST_FOREACH( shared_ptr resource_record, answers_list ) { - if ( ( resource_record != NULL ) && + if ( resource_record && ( resource_record->rtype() == boost::net::dns::type_a ) ) { a_resource *a_rr = dynamic_cast (