diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-27 14:29:04 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:37 -0400 |
commit | 1be27f36601973815171db684c711d30557cf50c (patch) | |
tree | 37119def0079958b1ec444ee6a3b2ec3b15337b5 /net/sunrpc/auth_gss | |
parent | 1dd17ec693bf4a08b666c2ef76b68ca08ce3c93d (diff) |
SUNRPC: Remove the tk_auth macro...
We should almost always be deferencing the rpc_auth struct by means of the
credential's cr_auth field instead of the rpc_clnt->cl_auth anyway. Fix up
that historical mistake, and remove the macro that propagated it.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 15da6f82db36..debcda86467c 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -906,7 +906,7 @@ gss_validate(struct rpc_task *task, __be32 *p) | |||
906 | goto out_bad; | 906 | goto out_bad; |
907 | /* We leave it to unwrap to calculate au_rslack. For now we just | 907 | /* We leave it to unwrap to calculate au_rslack. For now we just |
908 | * calculate the length of the verifier: */ | 908 | * calculate the length of the verifier: */ |
909 | task->tk_auth->au_verfsize = XDR_QUADLEN(len) + 2; | 909 | cred->cr_auth->au_verfsize = XDR_QUADLEN(len) + 2; |
910 | gss_put_ctx(ctx); | 910 | gss_put_ctx(ctx); |
911 | dprintk("RPC: %5u gss_validate: gss_verify_mic succeeded.\n", | 911 | dprintk("RPC: %5u gss_validate: gss_verify_mic succeeded.\n", |
912 | task->tk_pid); | 912 | task->tk_pid); |
@@ -1206,7 +1206,7 @@ gss_unwrap_resp(struct rpc_task *task, | |||
1206 | break; | 1206 | break; |
1207 | } | 1207 | } |
1208 | /* take into account extra slack for integrity and privacy cases: */ | 1208 | /* take into account extra slack for integrity and privacy cases: */ |
1209 | task->tk_auth->au_rslack = task->tk_auth->au_verfsize + (p - savedp) | 1209 | cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp) |
1210 | + (savedlen - head->iov_len); | 1210 | + (savedlen - head->iov_len); |
1211 | out_decode: | 1211 | out_decode: |
1212 | status = decode(rqstp, p, obj); | 1212 | status = decode(rqstp, p, obj); |