diff options
author | Xin LI <delphij@FreeBSD.org> | 2017-06-01 06:12:25 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2017-06-01 06:12:25 +0000 |
commit | 6448ec89e7391aee8ce76785e0ec520ba7abb1c8 (patch) | |
tree | b46740f9ea572cd854ee87389eef91802c3ffae6 /usr.sbin/rpcbind | |
parent | 26f923dca39acab33709d5073558846f0e1b67ae (diff) | |
download | src-test2-6448ec89e7391aee8ce76785e0ec520ba7abb1c8.tar.gz src-test2-6448ec89e7391aee8ce76785e0ec520ba7abb1c8.zip |
Notes
Diffstat (limited to 'usr.sbin/rpcbind')
-rw-r--r-- | usr.sbin/rpcbind/rpcb_svc_com.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c index c86f75e7970c..d5beb13f7461 100644 --- a/usr.sbin/rpcbind/rpcb_svc_com.c +++ b/usr.sbin/rpcbind/rpcb_svc_com.c @@ -55,6 +55,7 @@ #include <stdio.h> #ifdef PORTMAP #include <netinet/in.h> +#include <rpc/rpc_com.h> #include <rpc/pmap_prot.h> #endif /* PORTMAP */ #include <string.h> @@ -418,7 +419,8 @@ rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp __unused, static bool_t xdr_encap_parms(XDR *xdrs, struct encap_parms *epp) { - return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), ~0)); + return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), + RPC_MAXDATASIZE)); } /* |