Fixes BZ #15890.
+2013-08-26 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ [BZ #15890]
+ * nscd/aicache.c: Include res_hconf.h.
+ (addhstaiX): Initialize res_hconf.
+
2013-08-26 Andreas Schwab <schwab@suse.de>
* stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
* The following bugs are resolved with this release:
- 14699, 15531, 15532, 15749, 15797, 15867
+ 14699, 15531, 15532, 15749, 15797, 15867, 15890
* CVE-2013-4237 The readdir_r function could write more than NAME_MAX bytes
to the d_name member of struct dirent, or omit the terminating NUL
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <resolv/res_hconf.h>
#include "dbg_log.h"
#include "nscd.h"
no_more = __nss_database_lookup ("hosts", NULL,
"dns [!UNAVAIL=return] files", &nip);
+ /* Initialize configurations. */
+ if (__builtin_expect (!_res_hconf.initialized, 0))
+ _res_hconf_init ();
if (__res_maybe_init (&_res, 0) == -1)
no_more = 1;