[Midnightbsd-cvs] src [8718] trunk/sys/fs/nfsclient/nfs_clrpcops.c: be conservative and do not try to consume more bytes than was requested.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 18:27:52 EDT 2016
Revision: 8718
http://svnweb.midnightbsd.org/src/?rev=8718
Author: laffer1
Date: 2016-09-25 18:27:52 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
be conservative and do not try to consume more bytes than was requested.
Modified Paths:
--------------
trunk/sys/fs/nfsclient/nfs_clrpcops.c
Modified: trunk/sys/fs/nfsclient/nfs_clrpcops.c
===================================================================
--- trunk/sys/fs/nfsclient/nfs_clrpcops.c 2016-09-25 22:27:13 UTC (rev 8717)
+++ trunk/sys/fs/nfsclient/nfs_clrpcops.c 2016-09-25 22:27:52 UTC (rev 8718)
@@ -1339,7 +1339,7 @@
NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED);
eof = fxdr_unsigned(int, *tl);
}
- NFSM_STRSIZ(retlen, rsize);
+ NFSM_STRSIZ(retlen, len);
error = nfsm_mbufuio(nd, uiop, retlen);
if (error)
goto nfsmout;
More information about the Midnightbsd-cvs
mailing list