diff options
author | louiz’ <louiz@louiz.org> | 2016-10-06 23:54:39 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-06 22:28:25 +0200 |
commit | 954d271d509356ab8042976b9add577150254b64 (patch) | |
tree | 687d72a3e38fd9292282791f16ede18fdf4489ce | |
parent | 92c99bb9dd1e431de000f085e0c6c05565fee650 (diff) | |
download | biboumi-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
-rw-r--r-- | louloulibs/network/tcp_socket_handler.cpp | 2 |
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); } |