about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--resolv/res_init.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c2c5af6e66..5135c01785 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 c5dc801937..e0b6a80dc7 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;