summaryrefslogtreecommitdiff
path: root/usr.sbin/rpcbind
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-06-01 06:12:25 +0000
committerXin LI <delphij@FreeBSD.org>2017-06-01 06:12:25 +0000
commit6448ec89e7391aee8ce76785e0ec520ba7abb1c8 (patch)
treeb46740f9ea572cd854ee87389eef91802c3ffae6 /usr.sbin/rpcbind
parent26f923dca39acab33709d5073558846f0e1b67ae (diff)
downloadsrc-test2-6448ec89e7391aee8ce76785e0ec520ba7abb1c8.tar.gz
src-test2-6448ec89e7391aee8ce76785e0ec520ba7abb1c8.zip
Notes
Diffstat (limited to 'usr.sbin/rpcbind')
-rw-r--r--usr.sbin/rpcbind/rpcb_svc_com.c4
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));
}
/*