Fix the argument of strerror after bind()
fix coverity CID 134470
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user