[PATCH] RPC: Don't fall back from krb5p to krb5i

We shouldn't be silently falling back from krb5p to krb5i.

 Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
J. Bruce Fields 2005-06-22 17:16:23 +00:00 committed by Trond Myklebust
parent e50a1c2e1f
commit 438b6fdebf

View File

@ -675,9 +675,8 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
goto err_free; goto err_free;
} }
gss_auth->service = gss_pseudoflavor_to_service(gss_auth->mech, flavor); gss_auth->service = gss_pseudoflavor_to_service(gss_auth->mech, flavor);
/* FIXME: Will go away once privacy support is merged in */ if (gss_auth->service == 0)
if (gss_auth->service == RPC_GSS_SVC_PRIVACY) goto err_put_mech;
gss_auth->service = RPC_GSS_SVC_INTEGRITY;
INIT_LIST_HEAD(&gss_auth->upcalls); INIT_LIST_HEAD(&gss_auth->upcalls);
spin_lock_init(&gss_auth->lock); spin_lock_init(&gss_auth->lock);
auth = &gss_auth->rpc_auth; auth = &gss_auth->rpc_auth;