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; }