mirror of git://sourceware.org/git/glibc.git
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:
parent
bf20990de0
commit
75ded9bcdf
|
|
@ -1,5 +1,8 @@
|
||||||
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #10391]
|
||||||
|
* resolv/res_send.c (send_dg): Initialize resplen.
|
||||||
|
|
||||||
[BZ #10446]
|
[BZ #10446]
|
||||||
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
|
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
|
||||||
definition to the kernel's.
|
definition to the kernel's.
|
||||||
|
|
|
||||||
|
|
@ -1005,7 +1005,8 @@ send_dg(res_state statp,
|
||||||
struct pollfd pfd[1];
|
struct pollfd pfd[1];
|
||||||
int ptimeout;
|
int ptimeout;
|
||||||
struct sockaddr_in6 from;
|
struct sockaddr_in6 from;
|
||||||
int resplen, n;
|
int resplen = 0;
|
||||||
|
int n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute time for the total operation.
|
* Compute time for the total operation.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue