summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2015-11-20 15:45:35 -0500
committerJ. Bruce Fields <bfields@redhat.com>2015-11-24 12:39:16 -0500
commit6496500cf15f29ac8afc565e2e4b6f92a1324860 (patch)
tree11b24d4171b2c6beefdd38d37add9f6149424c05 /net/sunrpc/svcauth.c
parentd3f03403a8735cebfcc16db4edfbf07c5c7421f5 (diff)
svcrpc: move some initialization to common code
Minor cleanup, no change in behavior. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcauth.c')
-rw-r--r--net/sunrpc/svcauth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c
index 79c0f3459b5c..69841db1f533 100644
--- a/net/sunrpc/svcauth.c
+++ b/net/sunrpc/svcauth.c
@@ -55,6 +55,7 @@ svc_authenticate(struct svc_rqst *rqstp, __be32 *authp)
55 spin_unlock(&authtab_lock); 55 spin_unlock(&authtab_lock);
56 56
57 rqstp->rq_auth_slack = 0; 57 rqstp->rq_auth_slack = 0;
58 init_svc_cred(&rqstp->rq_cred);
58 59
59 rqstp->rq_authop = aops; 60 rqstp->rq_authop = aops;
60 return aops->accept(rqstp, authp); 61 return aops->accept(rqstp, authp);
@@ -63,6 +64,7 @@ EXPORT_SYMBOL_GPL(svc_authenticate);
63 64
64int svc_set_client(struct svc_rqst *rqstp) 65int svc_set_client(struct svc_rqst *rqstp)
65{ 66{
67 rqstp->rq_client = NULL;
66 return rqstp->rq_authop->set_client(rqstp); 68 return rqstp->rq_authop->set_client(rqstp);
67} 69}
68EXPORT_SYMBOL_GPL(svc_set_client); 70EXPORT_SYMBOL_GPL(svc_set_client);