From 75ded9bcdff960829743aca4a984a4cbf40a3585 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 29 Oct 2009 23:01:58 -0700 Subject: Initialize local variable in resolver. When the DNS server doesn't reply at all we possibly tested an unitialized variable. --- resolv/res_send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resolv') 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. -- cgit v1.1