From d6a7f2906a1dbe12fad1a7cef9a2b816e700a974 Mon Sep 17 00:00:00 2001 From: Alex Brown Date: Fri, 27 Oct 2023 17:46:33 +0100 Subject: 3rdpary/asio: Fixed error check in sockatmark(). (#11656) From chriskohlhoff/asio@f79d3dc5c85675b01196d301595155ede085483d --- 3rdparty/asio/include/asio/detail/impl/socket_ops.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/asio/include/asio/detail/impl/socket_ops.ipp b/3rdparty/asio/include/asio/detail/impl/socket_ops.ipp index 77edf9e15e2..3403f1c0a85 100644 --- a/3rdparty/asio/include/asio/detail/impl/socket_ops.ipp +++ b/3rdparty/asio/include/asio/detail/impl/socket_ops.ipp @@ -641,7 +641,7 @@ bool sockatmark(socket_type s, asio::error_code& ec) # endif // defined(ENOTTY) #else // defined(SIOCATMARK) int value = ::sockatmark(s); - get_last_error(ec, result < 0); + get_last_error(ec, value < 0); #endif // defined(SIOCATMARK) return ec ? false : value != 0; -- cgit v1.2.3