From f16d2e9461e71951744f21d28c5460ad866e06a9 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 12 Dec 2011 12:00:42 +0100 Subject: [PATCH] Fix type: Boost::shared_ptr supports conversion to bool but not to char* --- src/dns/dnsresolver.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 ( -- 1.7.1