Commit 954d271d authored by louiz’'s avatar louiz’

Fix the argument of strerror after bind()

fix coverity CID 134470
parent 92c99bb9
......@@ -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);
}
......
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