This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/18126] libresolv res_init() does not correctly inititalize internals


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]