aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/rpcb_clnt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index d1740dbab991..a9d2cdc8e32c 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -490,10 +490,11 @@ static int rpcb_decode_getaddr(struct rpc_rqst *req, __be32 *p,
490 unsigned short *portp) 490 unsigned short *portp)
491{ 491{
492 char *addr; 492 char *addr;
493 int addr_len, c, i, f, first, val; 493 u32 addr_len;
494 int c, i, f, first, val;
494 495
495 *portp = 0; 496 *portp = 0;
496 addr_len = (unsigned int) ntohl(*p++); 497 addr_len = ntohl(*p++);
497 if (addr_len > RPCB_MAXADDRLEN) /* sanity */ 498 if (addr_len > RPCB_MAXADDRLEN) /* sanity */
498 return -EINVAL; 499 return -EINVAL;
499 500