diff options
author | Craig Tiller <ctiller@google.com> | 2016-12-09 09:40:11 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-12-09 09:40:11 -0800 |
commit | b4aa70ea94687f41c731e57f9782c51c5dacf779 (patch) | |
tree | 618a24561fe188b69d36619c43e14f1831bc9014 /src/core/lib/security/credentials | |
parent | 75f8013ba65f5008660c8483800f325d0c1b80a9 (diff) |
Offer grpc_slice_to_c_string to simplify some code
Diffstat (limited to 'src/core/lib/security/credentials')
-rw-r--r-- | src/core/lib/security/credentials/plugin/plugin_credentials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/security/credentials/plugin/plugin_credentials.c b/src/core/lib/security/credentials/plugin/plugin_credentials.c index 66e501cffc..f98c9cd8ef 100644 --- a/src/core/lib/security/credentials/plugin/plugin_credentials.c +++ b/src/core/lib/security/credentials/plugin/plugin_credentials.c @@ -79,7 +79,7 @@ static void plugin_md_request_metadata_ready(void *request, grpc_credentials_md *md_array = NULL; for (i = 0; i < num_md; i++) { if (!grpc_header_key_is_legal(md[i].key)) { - char *key = grpc_dump_slice(md[i].key, GPR_DUMP_ASCII); + char *key = grpc_slice_to_c_string(md[i].key); gpr_log(GPR_ERROR, "Plugin added invalid metadata key: %s", key); gpr_free(key); seen_illegal_header = true; |