summaryrefslogtreecommitdiffstats
path: root/src/resolv/async_resolv.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-12 13:01:42 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-12 13:23:21 -0400
commit4ebd399129fa64cd3d789bf98b8587c2351d4d3e (patch)
treea26c7c2b11084bcac991ebd307f09c672c0793a1 /src/resolv/async_resolv.c
parent79d7d82aa56c562e6fe2366aa63552b8d4f62834 (diff)
downloadsssd-4ebd399129fa64cd3d789bf98b8587c2351d4d3e.tar.gz
sssd-4ebd399129fa64cd3d789bf98b8587c2351d4d3e.tar.xz
sssd-4ebd399129fa64cd3d789bf98b8587c2351d4d3e.zip
Set c-ares to retry nameservers
https://fedorahosted.org/sssd/ticket/867
Diffstat (limited to 'src/resolv/async_resolv.c')
-rw-r--r--src/resolv/async_resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index b7e03ded3..ff53aa441 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -331,7 +331,7 @@ recreate_ares_channel(struct resolv_ctx *ctx)
options.sock_state_cb_data = ctx;
options.timeout = ctx->timeout * 1000;
options.lookups = discard_const("fb");
- options.tries = 0;
+ options.tries = 1;
ret = ares_init_options(&new_channel, &options,
ARES_OPT_SOCK_STATE_CB |
ARES_OPT_TIMEOUTMS |