summaryrefslogtreecommitdiff
path: root/louloulibs/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-06 23:54:39 +0200
committerlouiz’ <louiz@louiz.org>2016-10-06 22:28:25 +0200
commit954d271d509356ab8042976b9add577150254b64 (patch)
tree687d72a3e38fd9292282791f16ede18fdf4489ce /louloulibs/network
parent92c99bb9dd1e431de000f085e0c6c05565fee650 (diff)
downloadbiboumi-954d271d509356ab8042976b9add577150254b64.tar.gz
biboumi-954d271d509356ab8042976b9add577150254b64.tar.bz2
biboumi-954d271d509356ab8042976b9add577150254b64.tar.xz
biboumi-954d271d509356ab8042976b9add577150254b64.zip
Fix the argument of strerror after bind()
fix coverity CID 134470
Diffstat (limited to 'louloulibs/network')
-rw-r--r--louloulibs/network/tcp_socket_handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp
index 5420b1c..967fefe 100644
--- a/louloulibs/network/tcp_socket_handler.cpp
+++ b/louloulibs/network/tcp_socket_handler.cpp
@@ -80,7 +80,7 @@ void TCPSocketHandler::init_socket(const struct addrinfo* rp)
}
if (!rp)
log_error("Failed to bind socket to ", this->bind_addr, ": ",
- strerror(bind_error));
+ strerror(errno));
else
log_info("Socket successfully bound to ", this->bind_addr);
}