Fix UpstreamPolicies another_strategy() when addr is NULL. (#1587)

This commit is contained in:
liyingxin
2024-07-10 17:55:15 +08:00
committed by GitHub
parent 1cbbec12c1
commit fe8253d5c4

View File

@@ -573,6 +573,9 @@ EndpointAddress *UPSWeightedRandomPolicy::another_strategy(const ParsedURI& uri,
}
}
if (!addr)
return NULL;
return this->check_and_get(addr, false, tracing);
}