diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | resolv/res_init.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -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] diff --git a/resolv/res_init.c b/resolv/res_init.c index c5dc801..e0b6a80 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -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; |