This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH COMMITTED] resolv: Use RES_DFLRETRY consistently [BZ #21474]


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 ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]