summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--resolv/res_send.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d869910a9..c622ad5d42 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 fa48bd98d1..e2bbfcc83f 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.