diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/security/client_auth_filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/security/client_auth_filter.c b/src/core/security/client_auth_filter.c index d822164233..e7057051e0 100644 --- a/src/core/security/client_auth_filter.c +++ b/src/core/security/client_auth_filter.c @@ -146,6 +146,7 @@ void build_auth_metadata_context(grpc_security_connector *sc, *last_slash = '\0'; method_name = gpr_strdup(last_slash + 1); } + if (method_name == NULL) method_name = gpr_strdup(""); gpr_asprintf(&service_url, "%s://%s%s", sc->url_scheme == NULL ? "" : sc->url_scheme, grpc_mdstr_as_c_string(calld->host), service); |