This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to fix recent clnt_udp change


> 
> 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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]