This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/18126] libresolv res_init() does not correctly inititalize internals
- From: "sourceware-bugs at internot dot info" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 15 Mar 2015 14:08:16 +0000
- Subject: [Bug network/18126] libresolv res_init() does not correctly inititalize internals
- Auto-submitted: auto-generated
- References: <bug-18126-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18126
--- Comment #2 from Joshua Rogers <sourceware-bugs at internot dot info> ---
(for reference)
Only these are kept on res_init(), and thus are only kept with the first call
to __res_maybe_init:
int retrans; /* retransmition time interval */
int retry; /* number of times to retransmit */
u_long options; /* option flags - see below. */
These are wiped, due to this bug:
int nscount; /* number of name servers */
struct sockaddr_in
nsaddr_list[MAXNS]; /* address of name server */
# define nsaddr nsaddr_list[0] /* for backward compatibility */
u_short id; /* current message id */
/* 2 byte hole here. */
char *dnsrch[MAXDNSRCH+1]; /* components of domain to search */
char defdname[256]; /* default domain (deprecated) */
u_long pfcode; /* RES_PRF_ flags - see below. */
unsigned ndots:4; /* threshold for initial abs. query */
unsigned nsort:4; /* number of elements in sort_list[] */
unsigned ipv6_unavail:1; /* connecting to IPv6 server failed */
--
You are receiving this mail because:
You are on the CC list for the bug.