Source-Changes-HG archive

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

[src/netbsd-6-0]: src/lib/libc/rpc Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/b3604f325c13
branches:  netbsd-6-0
changeset: 774794:b3604f325c13
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Apr 20 10:13:56 2013 +0000

description:
Pull up following revision(s) (requested by christos in ticket #875):
        lib/libc/rpc/clnt_vc.c: revision 1.22
PR/47747: Thorsten Brehm: TCP-based RPC client calls no longer terminate when
connections break. Return proper error code.
XXX: pullup 6

diffstat:

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

diffs (27 lines):

diff -r 90c410c53802 -r b3604f325c13 lib/libc/rpc/clnt_vc.c
--- a/lib/libc/rpc/clnt_vc.c    Sat Apr 20 10:11:43 2013 +0000
+++ b/lib/libc/rpc/clnt_vc.c    Sat Apr 20 10:13:56 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_vc.c,v 1.17.12.1 2013/03/31 20:26:59 riz Exp $    */
+/*     $NetBSD: clnt_vc.c,v 1.17.12.2 2013/04/20 10:13:56 bouyer Exp $ */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -36,7 +36,7 @@
 static char *sccsid = "@(#)clnt_tcp.c  2.2 88/08/01 4.0 RPCSRC";
 static char sccsid[] = "@(#)clnt_vc.c 1.19 89/03/16 Copyr 1988 Sun Micro";
 #else
-__RCSID("$NetBSD: clnt_vc.c,v 1.17.12.1 2013/03/31 20:26:59 riz Exp $");
+__RCSID("$NetBSD: clnt_vc.c,v 1.17.12.2 2013/04/20 10:13:56 bouyer Exp $");
 #endif
 #endif
  
@@ -709,7 +709,7 @@
                /* premature eof */
                ct->ct_error.re_errno = ECONNRESET;
                ct->ct_error.re_status = RPC_CANTRECV;
-               len = -1;  /* it's really an error */
+               nread = -1;  /* it's really an error */
                break;
 
        case -1:



Home | Main Index | Thread Index | Old Index