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.


---

 25-akpm/net/sunrpc/auth_gss/svcauth_gss.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN net/sunrpc/auth_gss/svcauth_gss.c~kNFSdv4-5-of-10-Fix-bad-error-returm-from-svcauth_gss_accept net/sunrpc/auth_gss/svcauth_gss.c
--- 25/net/sunrpc/auth_gss/svcauth_gss.c~kNFSdv4-5-of-10-Fix-bad-error-returm-from-svcauth_gss_accept	2004-04-07 19:39:30.093488816 -0700
+++ 25-akpm/net/sunrpc/auth_gss/svcauth_gss.c	2004-04-07 19:39:30.097488208 -0700
@@ -895,6 +895,7 @@ svcauth_gss_accept(struct svc_rqst *rqst
 		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)

_