Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/rpc Fix bug I introduced on 19990503 by renaming a ...



details:   https://anonhg.NetBSD.org/src/rev/95de2d3b938c
branches:  trunk
changeset: 472846:95de2d3b938c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 09 20:11:23 1999 +0000

description:
Fix bug I introduced on 19990503 by renaming a variable.

diffstat:

 lib/libc/rpc/svc_udp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 800dbe4bc849 -r 95de2d3b938c lib/libc/rpc/svc_udp.c
--- a/lib/libc/rpc/svc_udp.c    Sun May 09 19:43:58 1999 +0000
+++ b/lib/libc/rpc/svc_udp.c    Sun May 09 20:11:23 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc_udp.c,v 1.18 1999/05/03 15:32:13 christos Exp $    */
+/*     $NetBSD: svc_udp.c,v 1.19 1999/05/09 20:11:23 christos Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)svc_udp.c   2.2 88/07/29 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: svc_udp.c,v 1.18 1999/05/03 15:32:13 christos Exp $");
+__RCSID("$NetBSD: svc_udp.c,v 1.19 1999/05/09 20:11:23 christos Exp $");
 #endif
 #endif
 
@@ -207,7 +207,7 @@
        socklen_t alen;
 
     again:
-       xprt->xp_addrlen = sizeof(struct sockaddr_in);
+       alen = sizeof(struct sockaddr_in);
        rlen = recvfrom(xprt->xp_sock, rpc_buffer(xprt), su->su_iosz,
            0, (struct sockaddr *)(void *)&(xprt->xp_raddr), &alen);
        if (rlen == -1 && errno == EINTR)



Home | Main Index | Thread Index | Old Index