summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-06 23:53:22 +0200
committerlouiz’ <louiz@louiz.org>2016-10-06 22:28:25 +0200
commit92c99bb9dd1e431de000f085e0c6c05565fee650 (patch)
tree1ff76889695b7e4538505f38fa0982396dee4925 /louloulibs
parent3620d533ee88a8804317d2745320c0186192ddaa (diff)
downloadbiboumi-92c99bb9dd1e431de000f085e0c6c05565fee650.tar.gz
biboumi-92c99bb9dd1e431de000f085e0c6c05565fee650.tar.bz2
biboumi-92c99bb9dd1e431de000f085e0c6c05565fee650.tar.xz
biboumi-92c99bb9dd1e431de000f085e0c6c05565fee650.zip
Remove a branch that execute identical code in both cases
fix coverity CID 134469
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/network/dns_handler.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/louloulibs/network/dns_handler.cpp b/louloulibs/network/dns_handler.cpp
index e267944..fef0cfc 100644
--- a/louloulibs/network/dns_handler.cpp
+++ b/louloulibs/network/dns_handler.cpp
@@ -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);
}