aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/server.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-09 15:53:50 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-09 15:53:50 -0700
commitc6d6d9056d809c560688f62bf19a02463b7487fd (patch)
tree739862a00034bc395e3d1e7ef48b924386c1a326 /src/core/surface/server.c
parentb97b988052f628a7831042acd4cfe1ab854e97cf (diff)
Fix host name matching not working
Diffstat (limited to 'src/core/surface/server.c')
-rw-r--r--src/core/surface/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/server.c b/src/core/surface/server.c
index a9d8940631..5af5f47781 100644
--- a/src/core/surface/server.c
+++ b/src/core/surface/server.c
@@ -441,7 +441,7 @@ static void start_new_rpc(grpc_call_element *elem) {
/* TODO(ctiller): unify these two searches */
/* check for an exact match with host */
hash = GRPC_MDSTR_KV_HASH(calld->host->hash, calld->path->hash);
- for (i = 0; i < chand->registered_method_max_probes; i++) {
+ for (i = 0; i <= chand->registered_method_max_probes; i++) {
rm = &chand->registered_methods[(hash + i) %
chand->registered_method_slots];
if (!rm) break;