Resetting defdname (default domain name) before use in __res_vinit
ensures that the default domain name is correctly set to a default
value when it is not set by the LOCALDOMAIN environment variable or
the "domain" or "search" parameters in resolv.conf
Tested using the steps from:
https://sourceware.org/bugzilla/show_bug.cgi?id=19369
+2015-12-29 Rob Wu <rob@robwu.nl>
+
+ [BZ #19369]
+ * resolv/res_init.c (__res_vinit): Reset defdname before use.
+
2015-12-29 John David Anglin <danglin@gcc.gnu.org>
[BZ #19270]
}
statp->nscount = 0;
+ statp->defdname[0] = '\0';
statp->ndots = 1;
statp->pfcode = 0;
statp->_vcsock = -1;