Skip to content
Snippets Groups Projects
Commit 01eda53c authored by David G. Quintas's avatar David G. Quintas Committed by GitHub
Browse files

Merge pull request #8829 from dgquintas/grpclb_right_target

Check on *target, not target
parents 7cb13183 6493a738
No related branches found
No related tags found
No related merge requests found
...@@ -182,10 +182,10 @@ static void wrapped_rr_closure(grpc_exec_ctx *exec_ctx, void *arg, ...@@ -182,10 +182,10 @@ static void wrapped_rr_closure(grpc_exec_ctx *exec_ctx, void *arg,
NULL); NULL);
if (wc_arg->rr_policy != NULL) { if (wc_arg->rr_policy != NULL) {
/* if target is NULL, no pick has been made by the RR policy (eg, all /* if *target is NULL, no pick has been made by the RR policy (eg, all
* addresses failed to connect). There won't be any user_data/token * addresses failed to connect). There won't be any user_data/token
* available */ * available */
if (wc_arg->target != NULL) { if (*wc_arg->target != NULL) {
if (wc_arg->lb_token != NULL) { if (wc_arg->lb_token != NULL) {
initial_metadata_add_lb_token(wc_arg->initial_metadata, initial_metadata_add_lb_token(wc_arg->initial_metadata,
wc_arg->lb_token_mdelem_storage, wc_arg->lb_token_mdelem_storage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment