Snap for 11597038 from bd27912393 to 24Q3-release

Change-Id: Ic66a47e62dca716ac46c5292e2a416ec7cac2f88
This commit is contained in:
Android Build Coastguard Worker 2024-03-19 23:01:04 +00:00
commit 15fc244416

View file

@ -96,7 +96,7 @@ class UncryptTest : public ::testing::Test {
// Connect to the uncrypt socket.
bool success = false;
for (int retry = 0; retry < SOCKET_CONNECTION_MAX_RETRY; retry++) {
if (connect(sockfd, reinterpret_cast<sockaddr*>(&un), sizeof(sockaddr_un)) != 0) {
if (connect(sockfd, reinterpret_cast<sockaddr*>(&un), sizeof(sockaddr_un)) == 0) {
success = true;
break;
}