Skip to contentSkip to conversation

SUNRPC: Replace a signed v. unsigned comparison in rpcbind client

PATCH In review Chuck Lever 1 participant 1 message May 25, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/10 SUNRPC: Replace a signed v. unsigned comparison in rpcbind client

---

 net/sunrpc/rpcb_clnt.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/sunrpc/rpcb_clnt.c +2 -1
index 6c7aa8a..d9eb93f 100644
@@ -485,7 +485,8 @@ 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++);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs