diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/surface/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index e936e2015c..7210c69fb0 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -1198,7 +1198,9 @@ void grpc_server_setup_transport(grpc_exec_ctx *exec_ctx, grpc_server *s, crm->server_registered_method = rm; crm->flags = rm->flags; crm->has_host = has_host; - crm->host = host; + if (has_host) { + crm->host = host; + } crm->method = method; } GPR_ASSERT(slots <= UINT32_MAX); |