Commit:     afde94f398b62c8596a8d0cbfc25798f0b52a371
Parent:     bf19aacecbeebccb2c3d150a8bd9416b7dba81fe
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 26 14:38:08 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 17:20:28 2007 -0400

    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 <[EMAIL PROTECTED]>
    Cc: Olga Kornievskaia <[EMAIL PROTECTED]>
    Cc: Chuck Lever <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
 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 6cdf53c..e9866fc 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)
        if (args->servername == NULL) {
                struct sockaddr_in *addr =
-                                       (struct sockaddr_in *) &args->address;
+                                       (struct sockaddr_in *) args->address;
                snprintf(servername, sizeof(servername), NIPQUAD_FMT,
                args->servername = servername;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to