diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index e5b19e348d88..ff1e90fd81ab 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -550,7 +550,7 @@ size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) | |||
550 | if (bytes > bufsize) | 550 | if (bytes > bufsize) |
551 | bytes = bufsize; | 551 | bytes = bufsize; |
552 | memcpy(buf, &clnt->cl_xprt->addr, bytes); | 552 | memcpy(buf, &clnt->cl_xprt->addr, bytes); |
553 | return sizeof(xprt->addr); | 553 | return xprt->addrlen; |
554 | } | 554 | } |
555 | EXPORT_SYMBOL(rpc_peeraddr); | 555 | EXPORT_SYMBOL(rpc_peeraddr); |
556 | 556 | ||