diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-11-09 22:54:05 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-11-09 22:54:05 +0100 |
commit | 998fdd0c46a0684a6c7348751cc1632ce21d3e2f (patch) | |
tree | 92e3a640c058ee6f0f84bdb7bfd86f351e758b6e /src/core/lib/security/credentials/plugin | |
parent | 90eb388c17a611f01579856307b64c781bb39663 (diff) |
dont hang when empty metadata is passed
Diffstat (limited to 'src/core/lib/security/credentials/plugin')
-rw-r--r-- | src/core/lib/security/credentials/plugin/plugin_credentials.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/security/credentials/plugin/plugin_credentials.c b/src/core/lib/security/credentials/plugin/plugin_credentials.c index 61c10862da..5d950098a0 100644 --- a/src/core/lib/security/credentials/plugin/plugin_credentials.c +++ b/src/core/lib/security/credentials/plugin/plugin_credentials.c @@ -104,6 +104,8 @@ static void plugin_md_request_metadata_ready(void *request, grpc_slice_unref(md_array[i].value); } gpr_free(md_array); + } else if (num_md == 0) { + r->cb(&exec_ctx, r->user_data, NULL, 0, GRPC_CREDENTIALS_OK, NULL); } } gpr_free(r); |