Commit 611fa42d authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker

SUNRPC: Mark the cred for revalidation if the server rejects it

If the server rejects the credential as being stale, or bad, then we
should mark it for revalidation before retransmitting.

Fixes: 7f5667a5 ("SUNRPC: Clean up rpc_verify_header()")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent dd7d7ee3
...@@ -2751,6 +2751,7 @@ rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr) ...@@ -2751,6 +2751,7 @@ rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr)
case rpc_autherr_rejectedverf: case rpc_autherr_rejectedverf:
case rpcsec_gsserr_credproblem: case rpcsec_gsserr_credproblem:
case rpcsec_gsserr_ctxproblem: case rpcsec_gsserr_ctxproblem:
rpcauth_invalcred(task);
if (!task->tk_cred_retry) if (!task->tk_cred_retry)
break; break;
task->tk_cred_retry--; task->tk_cred_retry--;
......
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