From: Christian Herdtweck Date: Wed, 21 Jan 2015 12:51:16 +0000 (+0100) Subject: removed assert that does not make sense and is often violated X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=022e285dcb289478d8c32bc447c8c8addaf4e343;p=pingcheck removed assert that does not make sense and is often violated (IPs are not updated very often, so can easily happen that an IP's TTL was reached. It is easier to ignore these cases than to avoid them, IPs will with next test be updated.) --- diff --git a/src/dns/dnsresolver.cpp b/src/dns/dnsresolver.cpp index cf997b1..58f18bc 100644 --- a/src/dns/dnsresolver.cpp +++ b/src/dns/dnsresolver.cpp @@ -151,13 +151,11 @@ string DnsResolver::get_next_ip() HostAddress host_address = ResolvedHostAddressList.front(); string destination_ip = host_address.get_ip().to_string(); - uint32_t ttl = host_address.get_ttl().get_updated_value(); rotate( ResolvedHostAddressList.begin(), ++ResolvedHostAddressList.begin(), ResolvedHostAddressList.end() ); size_t list_size_after = ResolvedHostAddressList.size(); - BOOST_ASSERT( 0 < ttl ); BOOST_ASSERT( list_size_before == list_size_after ); return destination_ip;