aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2007-09-26 14:38:08 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:20:28 -0400
commitafde94f398b62c8596a8d0cbfc25798f0b52a371 (patch)
treefd82a6e18be9a251e9afa5fd5c87ff703642339d /net/sunrpc/clnt.c
parentbf19aacecbeebccb2c3d150a8bd9416b7dba81fe (diff)
SUNRPC: Fix default hostname created in rpc_create()
Since 43780b87fa7..., rpc_create() fills in a default hostname based on the ip address if the servername passed in is null. A small typo made that default incorrect. (But this information appears to be used only for debugging right now, so I don't believe the typo causes any bugs in the current kernel.) Thanks to Olga Kornievskaia for bug report and testing. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Cc: Olga Kornievskaia <aglo@citi.umich.edu> Cc: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 6cdf53c489b7..e9866fc93df1 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -259,7 +259,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
259 */ 259 */
260 if (args->servername == NULL) { 260 if (args->servername == NULL) {
261 struct sockaddr_in *addr = 261 struct sockaddr_in *addr =
262 (struct sockaddr_in *) &args->address; 262 (struct sockaddr_in *) args->address;
263 snprintf(servername, sizeof(servername), NIPQUAD_FMT, 263 snprintf(servername, sizeof(servername), NIPQUAD_FMT,
264 NIPQUAD(addr->sin_addr.s_addr)); 264 NIPQUAD(addr->sin_addr.s_addr));
265 args->servername = servername; 265 args->servername = servername;