diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-29 16:13:27 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-29 16:13:27 -0700 |
commit | abf36389d446bc6ac2f5a067d9ae8174123b7686 (patch) | |
tree | fcf5f1183fb478a99ffa3dc95b361134ed866be0 /src/core/client_config/resolvers | |
parent | d9a50886041fbd57e228b0b41d259029a576d589 (diff) |
Make SSL work
Diffstat (limited to 'src/core/client_config/resolvers')
-rw-r--r-- | src/core/client_config/resolvers/dns_resolver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/client_config/resolvers/dns_resolver.c b/src/core/client_config/resolvers/dns_resolver.c index c64491ae51..ac401bc4d3 100644 --- a/src/core/client_config/resolvers/dns_resolver.c +++ b/src/core/client_config/resolvers/dns_resolver.c @@ -173,7 +173,9 @@ static void dns_maybe_finish_next_locked(dns_resolver *r) { if (r->next_completion != NULL && r->resolved_version != r->published_version) { *r->target_config = r->resolved_config; - grpc_client_config_ref(r->resolved_config); + if (r->resolved_config) { + grpc_client_config_ref(r->resolved_config); + } grpc_iomgr_add_callback(r->next_completion); r->next_completion = NULL; r->published_version = r->resolved_version; |