from Matt Day <mday@artisoft.com>:
> So, the problem is hostnamebyanyaddr() assumes that _res is already > initialized to proper values, but this is no longer true as of BIND > 4.9.3. Here is a patch for sendmail 8.6.9 which changes > hostnamebyanyaddr() to make sure res_init() has been called before using > _res.retry. Submitted by: Matt Day <mday@artisoft.com> via Terry Lambert
This commit is contained in:
parent
ae099941e3
commit
5d20b0e1a2
@ -1406,6 +1406,9 @@ hostnamebyanyaddr(sap)
|
||||
int saveretry;
|
||||
|
||||
#if NAMED_BIND
|
||||
/* need to make sure _res.retry is initialized before using it */
|
||||
if ((_res.options & RES_INIT) == 0)
|
||||
res_init();
|
||||
/* shorten name server timeout to avoid higher level timeouts */
|
||||
saveretry = _res.retry;
|
||||
_res.retry = 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user