aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-01-27 22:14:38 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-01-27 22:14:38 +0000
commit5d20b0e1a20c9f31d1eca8db05ecc5e6c017b01d (patch)
tree5bd97989621440f2667093e308848cedd5103481 /usr.sbin/sendmail
parentae099941e32baab4b4b88d99676441552d3c2afb (diff)
Notes
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r--usr.sbin/sendmail/src/daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/src/daemon.c b/usr.sbin/sendmail/src/daemon.c
index 293438b70a73..55e5eb613dcb 100644
--- a/usr.sbin/sendmail/src/daemon.c
+++ b/usr.sbin/sendmail/src/daemon.c
@@ -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;