summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/resolv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 831f5215a..364a4b9f5 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2892,8 +2892,8 @@ static void res_sync_func(void)
__nameserver[n].sa4 = rp->nsaddr_list[n]; /* struct copy */
#endif
}
- __resolv_timeout = rp->retrans;
- __resolv_attempts = rp->retry;
+ __resolv_timeout = rp->retrans ? : RES_TIMEOUT;
+ __resolv_attempts = rp->retry ? : RES_DFLRETRY;
/* Extend and comment what program is known
* to use which _res.XXX member(s).