Fix unused-result compile failure in masque_client_bin.cc
PiperOrigin-RevId: 486530933
diff --git a/quiche/quic/masque/masque_client_bin.cc b/quiche/quic/masque/masque_client_bin.cc
index bf3995e..7383680 100644
--- a/quiche/quic/masque/masque_client_bin.cc
+++ b/quiche/quic/masque/masque_client_bin.cc
@@ -62,7 +62,9 @@
// TUN not open, early return
return;
}
- write(fd_, packet.data(), packet.size());
+ if (write(fd_, packet.data(), packet.size()) == -1) {
+ QUIC_LOG(FATAL) << "Failed to write";
+ }
}
void CloseIpSession(const std::string& details) override {
QUIC_LOG(ERROR) << "Was asked to close IP session: " << details;