diff options
author | Trond Myklebust <[email protected]> | 2023-09-04 12:50:09 -0400 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2023-09-13 11:51:11 -0400 |
commit | 611fa42dfa9d2f3918ac5f4dd5705dfad81b323d (patch) | |
tree | 68031ea8e01a51ad827db4f86ac0e2705283138c | |
parent | dd7d7ee3ba2a70d12d02defb478790cf57d5b87b (diff) |
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: 7f5667a5f8c4 ("SUNRPC: Clean up rpc_verify_header()")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8d75290f1a31..5c37621aa09a 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2751,6 +2751,7 @@ out_msg_denied: case rpc_autherr_rejectedverf: case rpcsec_gsserr_credproblem: case rpcsec_gsserr_ctxproblem: + rpcauth_invalcred(task); if (!task->tk_cred_retry) break; task->tk_cred_retry--; |