Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34779
b: refs/heads/master
c: 081f79a
h: refs/heads/master
i:
  34777: 7ba1b34
  34775: 04384cb
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Sep 23, 2006
1 parent c7eef9b commit 778c56b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44c31be261540acf66ddd730631ead8009cc361d
refs/heads/master: 081f79a9b09b634f0dc08ed014e0195464d52535
5 changes: 3 additions & 2 deletions trunk/net/sunrpc/pmap_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void rpc_getport(struct rpc_task *task)
{
struct rpc_clnt *clnt = task->tk_client;
struct rpc_xprt *xprt = task->tk_xprt;
struct sockaddr_in *sap = &xprt->addr;
struct sockaddr_in addr;
struct portmap_args *map;
struct rpc_clnt *pmap_clnt;
struct rpc_task *child;
Expand Down Expand Up @@ -124,7 +124,8 @@ void rpc_getport(struct rpc_task *task)
map->pm_port = 0;
map->pm_task = task;

pmap_clnt = pmap_create(clnt->cl_server, sap, map->pm_prot, 0);
rpc_peeraddr(clnt, (struct sockaddr *) &addr, sizeof(addr));
pmap_clnt = pmap_create(clnt->cl_server, &addr, map->pm_prot, 0);
if (IS_ERR(pmap_clnt)) {
task->tk_status = PTR_ERR(pmap_clnt);
goto bailout;
Expand Down

0 comments on commit 778c56b

Please sign in to comment.