cid#1700593: Unchecked return value from library

Change-Id: I82c3ed257aae2147cae333cea4b0208a9917feaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210368
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Xisco Fauli
2026-09-02 01:02:34 +02:00
parent c911d3cab2
commit 9fd700da99
+1 -1
View File
@@ -288,7 +288,7 @@ void OAuth2Request::Impl::sendResponse(tcp::socket& socket, std::string_view bod
// Wait for peer's FIN to avoid RST on close; timeout guards against a hung peer
socket.set_option(net::detail::socket_option::integer<SOL_SOCKET, SO_RCVTIMEO>(5000), ec);
char buf[1];
socket.read_some(net::buffer(buf), ec);
(void)socket.read_some(net::buffer(buf), ec);
}
void OAuth2Request::Impl::sendCloseResponse(tcp::socket& socket, std::u16string_view error) const