This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH COMMITTED] resolv: Use RES_DFLRETRY consistently [BZ #21474]
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Tue, 09 May 2017 13:21:19 +0200
- Subject: [PATCH COMMITTED] resolv: Use RES_DFLRETRY consistently [BZ #21474]
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 83E4A61E50
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 83E4A61E50
2017-05-09 Florian Weimer <fweimer@redhat.com>
[BZ #21474]
* resolv/res_libc.c (res_init): Use RES_DFLRETRY.
(__res_maybe_init): Likewise.
diff --git a/resolv/res_libc.c b/resolv/res_libc.c
index a4b376f..c52574f 100644
--- a/resolv/res_libc.c
+++ b/resolv/res_libc.c
@@ -65,7 +65,7 @@ res_init(void) {
if (!_res.retrans)
_res.retrans = RES_TIMEOUT;
if (!_res.retry)
- _res.retry = 4;
+ _res.retry = RES_DFLRETRY;
if (!(_res.options & RES_INIT))
_res.options = RES_DEFAULT;
else if (_res.nscount > 0)
@@ -103,7 +103,7 @@ __res_maybe_init (res_state resp, int preinit)
if (!resp->retrans)
resp->retrans = RES_TIMEOUT;
if (!resp->retry)
- resp->retry = 4;
+ resp->retry = RES_DFLRETRY;
resp->options = RES_DEFAULT;
if (!resp->id)
resp->id = res_randomid ();