3rdpary/asio: Fixed error check in sockatmark(). (#11656)

From chriskohlhoff/asio@f79d3dc5c8
This commit is contained in:
Alex Brown 2023-10-27 17:46:33 +01:00 committed by GitHub
parent ba621ec24d
commit d6a7f2906a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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