Fix host name matching not working

pull/2356/head
Craig Tiller 10 years ago
parent b97b988052
commit c6d6d9056d
  1. 2
      src/core/surface/server.c

@ -441,7 +441,7 @@ static void start_new_rpc(grpc_call_element *elem) {
/* TODO(ctiller): unify these two searches */ /* TODO(ctiller): unify these two searches */
/* check for an exact match with host */ /* check for an exact match with host */
hash = GRPC_MDSTR_KV_HASH(calld->host->hash, calld->path->hash); 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) % rm = &chand->registered_methods[(hash + i) %
chand->registered_method_slots]; chand->registered_method_slots];
if (!rm) break; if (!rm) break;

Loading…
Cancel
Save