aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/lb_policy/grpclb/grpclb.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-10-07 08:32:58 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-10-07 08:32:58 -0700
commit1e5f6af0c7deda7a101d9842fba78682f5c7aa0c (patch)
treefb32b0d6e8d8ec8d2946054b4e42dba118603a3e /src/core/ext/lb_policy/grpclb/grpclb.c
parente5c744d9850a763639b2e7001cf2487e1c76133b (diff)
Fix grpclb LB policy pick method to return 0 upon error.
Diffstat (limited to 'src/core/ext/lb_policy/grpclb/grpclb.c')
-rw-r--r--src/core/ext/lb_policy/grpclb/grpclb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/lb_policy/grpclb/grpclb.c b/src/core/ext/lb_policy/grpclb/grpclb.c
index 63af774ea6..ae1f2a3b4c 100644
--- a/src/core/ext/lb_policy/grpclb/grpclb.c
+++ b/src/core/ext/lb_policy/grpclb/grpclb.c
@@ -761,7 +761,7 @@ static int glb_pick(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
GRPC_ERROR_CREATE("No mdelem storage for the LB token. Load reporting "
"won't work without it. Failing"),
NULL);
- return 1;
+ return 0;
}
glb_lb_policy *glb_policy = (glb_lb_policy *)pol;