mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-31 14:01:18 +08:00
resolv: Reset defdname before use in __res_vinit [BZ #19369]
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
This commit is contained in:
parent
d51442aacd
commit
b674b82109
@ -1,3 +1,8 @@
|
||||
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]
|
||||
|
@ -176,6 +176,7 @@ __res_vinit(res_state statp, int preinit) {
|
||||
}
|
||||
|
||||
statp->nscount = 0;
|
||||
statp->defdname[0] = '\0';
|
||||
statp->ndots = 1;
|
||||
statp->pfcode = 0;
|
||||
statp->_vcsock = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user