projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddc01c0
)
SUNRPC: Fix a signed v. unsigned comparison in rpcbind's XDR routines
author
Chuck Lever
<chuck.lever@oracle.com>
Mon, 6 Aug 2007 15:56:31 +0000
(11:56 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:15:41 +0000
(17:15 -0400)
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/rpcb_clnt.c
b/net/sunrpc/rpcb_clnt.c
index d1740dbab991e98747593ebd16618a7245384567..a9d2cdc8e32c832d82a18623d2c9b0a295c3cd53 100644
(file)
--- 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,
unsigned short *portp)
{
char *addr;
- int addr_len, c, i, f, first, val;
+ u32 addr_len;
+ int c, i, f, first, val;
*portp = 0;
- addr_len =
(unsigned int)
ntohl(*p++);
+ addr_len = ntohl(*p++);
if (addr_len > RPCB_MAXADDRLEN) /* sanity */
return -EINVAL;