From e76c96658b971c03b91d967138b61d0db333422c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 11 Feb 2015 13:18:31 -0800 Subject: [PATCH] Fix typo causing crash --- src/core/surface/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/surface/server.c b/src/core/surface/server.c index c5f49a091ec..3f1c2add55e 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;