Fix the argument of strerror after bind()

fix coverity CID 134470
This commit is contained in:
louiz’ committed 2016-10-06 22:28:25 +02:00
1 parent 92c99bb9dd
commit 954d271d50
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}