Commit 92c99bb9 authored by louiz’'s avatar louiz’

Remove a branch that execute identical code in both cases

fix coverity CID 134469
parent 3620d533
......@@ -46,11 +46,7 @@ void DNSHandler::destroy()
void DNSHandler::gethostbyname(const std::string& name, ares_host_callback callback,
void* data, int family)
{
if (family == AF_INET)
::ares_gethostbyname(this->channel, name.data(), family,
callback, data);
else
::ares_gethostbyname(this->channel, name.data(), family,
::ares_gethostbyname(this->channel, name.data(), family,
callback, data);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment