diff options
author | Eduardo Cáceres de la Calle <eduherminio@users.noreply.github.com> | 2017-02-20 18:42:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 18:42:17 +0100 |
commit | ca468799280729b0a8a932401b353eecc985aac2 (patch) | |
tree | f1e70b77df3be33e8f3919b13da2106d3c74f3bd /src/core | |
parent | 36ffc6e0f73a1b13a79bf120b7a2517136b8e5d5 (diff) |
fix compile error
Diffstat (limited to 'src/core')
-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 6ab1c0d94d..ca8445a62e 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); |