mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
1998-09-10 12:51 Ulrich Drepper <drepper@cygnus.com> * resolv/res_init.c (res_init): Initialize _res.nscount and _res.nsaddr.sin_port differently for the can when no loopback is available to allow immediate timeout in non-networking environments. Patch by Cristian Gafton <gafton@redhat.com>.
This commit is contained in:
@ -206,12 +206,14 @@ res_init()
|
||||
|
||||
#ifdef USELOOPBACK
|
||||
_res.nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
|
||||
_res.nscount = 1;
|
||||
_res.nsaddr.sin_port = htons(NAMESERVER_PORT);
|
||||
#else
|
||||
_res.nsaddr.sin_addr.s_addr = INADDR_ANY;
|
||||
_res.nscount = 0;
|
||||
_res.nsaddr.sin_port = 0;
|
||||
#endif
|
||||
_res.nsaddr.sin_family = AF_INET;
|
||||
_res.nsaddr.sin_port = htons(NAMESERVER_PORT);
|
||||
_res.nscount = 1;
|
||||
_res.ndots = 1;
|
||||
_res.pfcode = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user