aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/server.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-11 13:18:31 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-11 13:18:31 -0800
commite76c96658b971c03b91d967138b61d0db333422c (patch)
treebe9ec5a4711c0521238e4880ac4f1c7260bb6cca /src/core/surface/server.c
parenta5c0e7bc46721e73ab562d90ca37736ea69b8e90 (diff)
Fix typo causing crash
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 c5f49a091e..3f1c2add55 100644
--- a/src/core/surface/server.c
+++ b/src/core/surface/server.c
@@ -687,7 +687,7 @@ grpc_transport_setup_result grpc_server_setup_transport(
memset(chand->registered_methods, 0, alloc);
for (rm = s->registered_methods; rm; rm = rm->next) {
host = rm->host ? grpc_mdstr_from_string(mdctx, rm->host) : NULL;
- method = grpc_mdstr_from_string(mdctx, rm->host);
+ method = grpc_mdstr_from_string(mdctx, rm->method);
hash = GRPC_MDSTR_KV_HASH(host ? host->hash : 0, method->hash);
for (probes = 0; chand->registered_methods[(hash + probes) % slots]
.server_registered_method != NULL;