Initialize local variable in resolver.

When the DNS server doesn't reply at all we possibly tested
an unitialized variable.
This commit is contained in:
Ulrich Drepper 2009-10-29 23:01:58 -07:00
parent bf20990de0
commit 75ded9bcdf
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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.