Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/rpc PR/47747: Thorsten Brehm: TCP-based RPC client ...



details:   https://anonhg.NetBSD.org/src/rev/b080c8e3fbde
branches:  trunk
changeset: 786162:b080c8e3fbde
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 17 16:36:47 2013 +0000

description:
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 337604030a85 -r b080c8e3fbde lib/libc/rpc/clnt_vc.c
--- a/lib/libc/rpc/clnt_vc.c    Wed Apr 17 15:04:39 2013 +0000
+++ b/lib/libc/rpc/clnt_vc.c    Wed Apr 17 16:36:47 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_vc.c,v 1.21 2013/03/11 20:19:29 tron Exp $        */
+/*     $NetBSD: clnt_vc.c,v 1.22 2013/04/17 16:36:47 christos Exp $    */
 
 /*
  * Copyright (c) 2010, Oracle America, Inc.
@@ -38,7 +38,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.21 2013/03/11 20:19:29 tron Exp $");
+__RCSID("$NetBSD: clnt_vc.c,v 1.22 2013/04/17 16:36:47 christos Exp $");
 #endif
 #endif
  
@@ -713,7 +713,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