diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-17 03:25:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-17 03:25:42 -0700 |
| commit | 020e39c532f4d1983b0c7828b655a8a27301288b (patch) | |
| tree | 5cb53254acb44fb7db43b5f6d495d5a0a9ef570b | |
| parent | 065eae6c389ef6d5d1a09d03ec3d1f201aec5424 (diff) | |
[PATCH] kNFSdv4: Fix bad error returm from svcauth_gss_accept
From: NeilBrown <neilb@cse.unsw.edu.au>
From: "J. Bruce Fields" <bfields@fieldses.org>
Error return when the client supplies a bad service should be badcred.
| -rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 2277667d3397..a60a541e9f5e 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -895,6 +895,7 @@ svcauth_gss_accept(struct svc_rqst *rqstp, u32 *authp) svc_putu32(resv, rpc_success); goto complete; case RPC_GSS_PROC_DATA: + *authp = rpc_autherr_badcred; rqstp->rq_client = find_gss_auth_domain(rsci->mechctx, gc->gc_svc); if (rqstp->rq_client == NULL) |
