This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: Patch to fix recent clnt_udp change
- To: drepper@cygnus.com
- Subject: Re: Patch to fix recent clnt_udp change
- From: hjl@lucon.org (H.J. Lu)
- Date: Thu, 15 Apr 1999 10:21:28 -0700 (PDT)
- Cc: aj@arthur.rhein-neckar.de, libc-hacker@cygnus.com
>
> Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
>
> > Looking at the code, the warning is justified, anyup isn't initialized
> > at all:-(.
> >
> > I'm appending a patch.
>
> It's in. Thanks,
>
Could you please install this patch to get back my original version?
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Index: sunrpc/clnt_udp.c
===================================================================
RCS file: /local/work/cvs/gnu/glibc/sunrpc/clnt_udp.c,v
retrieving revision 1.1.1.14
diff -u -p -r1.1.1.14 clnt_udp.c
--- sunrpc/clnt_udp.c 1999/04/15 17:10:22 1.1.1.14
+++ sunrpc/clnt_udp.c 1999/04/15 17:18:17
@@ -267,7 +267,7 @@ clntudp_call (cl, proc, xargs, argsp, xr
bool_t ok;
int nrefreshes = 2; /* number of times to refresh cred */
struct timeval timeout;
- int anyup = 0; /* any network interface up */
+ int anyup; /* any network interface up */
if (cu->cu_total.tv_usec == -1)
{
@@ -323,6 +323,7 @@ send_again:
reply_msg.acpted_rply.ar_results.proc = xresults;
fd.fd = cu->cu_sock;
fd.events = POLLIN;
+ anyup = 0;
for (;;)
{
switch (__poll (&fd, 1, milliseconds))