Cleanup condition on `bind` error (#624)

This commit is contained in:
Tomohiro IKEDA 2019-08-02 09:32:28 +09:00 committed by Kongqun Yang
parent 78941394dd
commit f810fea0ef
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ bool UdpFile::Open() {
if (bind(new_socket.get(), if (bind(new_socket.get(),
reinterpret_cast<struct sockaddr*>(&local_sock_addr), reinterpret_cast<struct sockaddr*>(&local_sock_addr),
sizeof(local_sock_addr))) { sizeof(local_sock_addr)) < 0) {
LOG(ERROR) << "Could not bind UDP socket"; LOG(ERROR) << "Could not bind UDP socket";
return false; return false;
} }