mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix UpstreamPolicies another_strategy() when addr is NULL. (#1587)
This commit is contained in:
@@ -573,6 +573,9 @@ EndpointAddress *UPSWeightedRandomPolicy::another_strategy(const ParsedURI& uri,
|
||||
}
|
||||
}
|
||||
|
||||
if (!addr)
|
||||
return NULL;
|
||||
|
||||
return this->check_and_get(addr, false, tracing);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user