Fix the argument of strerror after bind()

fix coverity CID 134470
This commit is contained in:
louiz’
2016-10-06 22:28:25 +02:00
parent 92c99bb9dd
commit 954d271d50
+1 -1
View File
@@ -80,7 +80,7 @@ void TCPSocketHandler::init_socket(const struct addrinfo* rp)
} }
if (!rp) if (!rp)
log_error("Failed to bind socket to ", this->bind_addr, ": ", log_error("Failed to bind socket to ", this->bind_addr, ": ",
strerror(bind_error)); strerror(errno));
else else
log_info("Socket successfully bound to ", this->bind_addr); log_info("Socket successfully bound to ", this->bind_addr);
} }