Remove a branch that execute identical code in both cases
fix coverity CID 134469
This commit is contained in:
1 parent
3620d533ee
commit
92c99bb9dd
1 file changed
+1
-5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user