diff options
author | 2016-11-08 14:17:48 -0800 | |
---|---|---|
committer | 2016-11-08 14:17:48 -0800 | |
commit | 8006949fd372d0e18317060d0d070e9bd5d71401 (patch) | |
tree | 5e63b6b9171ad0aa6cd9a513851313526bcd466e /src/core | |
parent | f953295b742547120796c0eb51ae499f5a33b1a9 (diff) |
Added assert for lb_token before reffing it
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/lb_policy/grpclb/grpclb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/lb_policy/grpclb/grpclb.c b/src/core/ext/lb_policy/grpclb/grpclb.c index 9f37dc9a67..a69b5c8e51 100644 --- a/src/core/ext/lb_policy/grpclb/grpclb.c +++ b/src/core/ext/lb_policy/grpclb/grpclb.c @@ -186,6 +186,7 @@ static void wrapped_rr_closure(grpc_exec_ctx *exec_ctx, void *arg, * addresses failed to connect). There won't be any user_data/token * available */ if (wc_arg->target != NULL) { + GPR_ASSERT(wc_arg->lb_token != NULL); initial_metadata_add_lb_token(wc_arg->initial_metadata, wc_arg->lb_token_mdelem_storage, GRPC_MDELEM_REF(wc_arg->lb_token)); |