aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/httpcli/httpcli.c
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-02-20 17:40:41 -0800
committerGravatar Julien Boeuf <jboeuf@google.com>2015-02-21 21:57:42 -0800
commitcd9b1c850db35ad37669dc0a650712b1cd29527f (patch)
treeb0782908327649376dd8485706130d8921a483e1 /src/core/httpcli/httpcli.c
parentdc6abba60a2c4f3f5131814e5ee6b251b0188605 (diff)
Added support for default credentials.
- Tested with new tool (print_default_creds_token) on: - workstation for env var and well known place. - GCE for compute engine default creds. - I'd prefer the grpc_default_credentials_create() API to remain synchronous even though there may be an async call for gce detection on which we block.
Diffstat (limited to 'src/core/httpcli/httpcli.c')
-rw-r--r--src/core/httpcli/httpcli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/httpcli/httpcli.c b/src/core/httpcli/httpcli.c
index d372e694e9..d2cf09a8df 100644
--- a/src/core/httpcli/httpcli.c
+++ b/src/core/httpcli/httpcli.c
@@ -216,6 +216,7 @@ static void on_resolved(void *arg, grpc_resolved_addresses *addresses) {
gpr_log(GPR_DEBUG, "%s", __FUNCTION__);
if (!addresses) {
finish(req, 0);
+ return;
}
req->addresses = addresses;
req->next_address = 0;