diff options
author | Kenneth Soerensen <kenneth.sorensen@spectralink.com> | 2013-12-20 15:53:01 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-12-20 15:53:01 +0100 |
commit | 1c8d287e58a3199213b5533136a7a04c8eb231bb (patch) | |
tree | d56ef2f9c9d38719e1bdf92e37a64c10d3569d1c /include/protocols/rwhod.h | |
parent | 294079b3fd6a30d444b2b093bc0f1909136a0f6c (diff) |
inet: Fix threaded res_init
In a multi-threaded application where res_init() was called either
directly or implicitly, getaddrinfo() and others failed to add the
DNS search domain to hostnames.
This problem made it not possible to look up a hostname without its
domain appended.
The problem is caused by res_sync_func() overwriting the configuration
read by __open_nameservers() immediately after it is read.
The suggested solutin is to disable res_sync_func() while reading name
server configuration in res_init().
Signed-off-by: Kenneth Soerensen <kenneth.sorensen@spectralink.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/protocols/rwhod.h')
0 files changed, 0 insertions, 0 deletions