aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/xdr/xdr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/xdr/xdr.c b/sys/xdr/xdr.c
index f983a474abdd..e012c83104d4 100644
--- a/sys/xdr/xdr.c
+++ b/sys/xdr/xdr.c
@@ -46,8 +46,6 @@
#include <sys/malloc.h>
#include <sys/module.h>
-#include <rpc/rpc.h>
-#include <rpc/rpc_com.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -626,7 +624,7 @@ xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
* be invalid. Otherwise, if it's very small, we might
* fail to free the string.
*/
- maxsize = RPC_MAXDATASIZE;
+ maxsize = ~0U;
/* FALLTHROUGH */
case XDR_ENCODE:
size = strlen(sp);
@@ -687,7 +685,7 @@ xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
bool_t
xdr_wrapstring(XDR *xdrs, char **cpp)
{
- return xdr_string(xdrs, cpp, RPC_MAXDATASIZE);
+ return (xdr_string(xdrs, cpp, ~0U));
}
/*