aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-04-29 11:35:07 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-04-29 11:35:07 -0700
commitf3764292f0ffa00713063c852384f57300b4064b (patch)
tree9e48ca9897c9f9ebec397cb08f7265062b73d426 /src
parentd7ec8a3dd0ad389a37ce0dd7ed140483785b293b (diff)
Ref the cache default creds so that we do not crash next time we use it...
Diffstat (limited to 'src')
-rw-r--r--src/core/security/google_default_credentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/security/google_default_credentials.c b/src/core/security/google_default_credentials.c
index d2f46ddd07..0e4b9fc9d3 100644
--- a/src/core/security/google_default_credentials.c
+++ b/src/core/security/google_default_credentials.c
@@ -163,7 +163,7 @@ grpc_credentials *grpc_google_default_credentials_create(void) {
gpr_mu_lock(&g_mu);
if (default_credentials != NULL) {
- result = default_credentials;
+ result = grpc_credentials_ref(default_credentials);
serving_cached_credentials = 1;
goto end;
}