From f810fea0ef41f2794e827d4c8ca8ad1c56f3abcf Mon Sep 17 00:00:00 2001 From: Tomohiro IKEDA Date: Fri, 2 Aug 2019 09:32:28 +0900 Subject: [PATCH] Cleanup condition on `bind` error (#624) --- packager/file/udp_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/file/udp_file.cc b/packager/file/udp_file.cc index 6904953af0..c9304c4bce 100644 --- a/packager/file/udp_file.cc +++ b/packager/file/udp_file.cc @@ -199,7 +199,7 @@ bool UdpFile::Open() { if (bind(new_socket.get(), reinterpret_cast(&local_sock_addr), - sizeof(local_sock_addr))) { + sizeof(local_sock_addr)) < 0) { LOG(ERROR) << "Could not bind UDP socket"; return false; }