This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.22-631-gb674b82


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b674b821091141c5eed7d423612d3b10703e9c62 (commit)
      from  d51442aacdbdb63e2f10815d843b551a9291d7a5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b674b821091141c5eed7d423612d3b10703e9c62

commit b674b821091141c5eed7d423612d3b10703e9c62
Author: Rob Wu <rob@robwu.nl>
Date:   Wed Dec 16 12:53:27 2015 +0100

    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

diff --git a/ChangeLog b/ChangeLog
index c2c5af6..5135c01 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 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;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    5 +++++
 resolv/res_init.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]