aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2011-04-24 21:27:29 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2011-04-24 21:27:29 +0000
commit731941f3b0008d42ad8dc085cea8de85dccf1999 (patch)
tree1a4f238ed039d329b670bd075a72e940f0d2450b /lib
parente0fd713f08650427ea2edeacd4d22934582c1b3e (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/svc_vc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c
index 3fd8b7e2ddb4..aded6b19bf70 100644
--- a/lib/libc/rpc/svc_vc.c
+++ b/lib/libc/rpc/svc_vc.c
@@ -546,7 +546,7 @@ write_vc(xprtp, buf, len)
cd->strm_stat = XPRT_DIED;
return (-1);
}
- if (cd->nonblock && i != cnt) {
+ if (cd->nonblock) {
/*
* For non-blocking connections, do not
* take more than 2 seconds writing the
@@ -560,6 +560,7 @@ write_vc(xprtp, buf, len)
return (-1);
}
}
+ i = 0;
}
}