Commit bd24a6bd authored by Trond Myklebust's avatar Trond Myklebust Committed by Linus Torvalds

[PATCH] RPC: fix crrefresh() operations for AUTH_NULL and AUTH_SYS

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5aebf314
......@@ -100,7 +100,8 @@ nul_marshal(struct rpc_task *task, u32 *p, int ruid)
static int
nul_refresh(struct rpc_task *task)
{
return task->tk_status = -EACCES;
task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE;
return 0;
}
static u32 *
......
......@@ -187,7 +187,7 @@ static int
unx_refresh(struct rpc_task *task)
{
task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE;
return task->tk_status = -EACCES;
return 0;
}
static u32 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment