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.10-391-g75ded9b


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  75ded9bcdff960829743aca4a984a4cbf40a3585 (commit)
      from  bf20990de0c0478cd974717237c5738d036ad8dc (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=75ded9bcdff960829743aca4a984a4cbf40a3585

commit 75ded9bcdff960829743aca4a984a4cbf40a3585
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Oct 29 23:01:58 2009 -0700

    Initialize local variable in resolver.
    
    When the DNS server doesn't reply at all we possibly tested
    an unitialized variable.

diff --git a/ChangeLog b/ChangeLog
index 3d86991..c622ad5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
 
+	[BZ #10391]
+	* resolv/res_send.c (send_dg): Initialize resplen.
+
 	[BZ #10446]
 	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
 	definition to the kernel's.
diff --git a/resolv/res_send.c b/resolv/res_send.c
index fa48bd9..e2bbfcc 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -1005,7 +1005,8 @@ send_dg(res_state statp,
 	struct pollfd pfd[1];
 	int ptimeout;
 	struct sockaddr_in6 from;
-	int resplen, n;
+	int resplen = 0;
+	int n;
 
 	/*
 	 * Compute time for the total operation.

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

Summary of changes:
 ChangeLog         |    3 +++
 resolv/res_send.c |    3 ++-
 2 files changed, 5 insertions(+), 1 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]