We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fb5d7 commit 575bf30Copy full SHA for 575bf30
gloo/transport/tcp/device.cc
@@ -96,7 +96,7 @@ static void lookupAddrForHostname(struct attr& attr) {
96
int bind_errno = 0;
97
std::string bind_addr;
98
auto rv = getaddrinfo(attr.hostname.data(), nullptr, &hints, &result);
99
- GLOO_ENFORCE_NE(rv, -1);
+ GLOO_ENFORCE_EQ(rv, 0);
100
struct addrinfo* rp;
101
for (rp = result; rp != nullptr; rp = rp->ai_next) {
102
auto fd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
0 commit comments