NFS: Don't drop CB requests with invalid principals
[deliverable/linux.git] / net / sunrpc / svc.c
index 87290a5a9ac7efcc8e9687cff65ea4fc8d9eaa1b..c5b0cb4f4056c4da0a0adc556cf46bebb48d2e7a 100644 (file)
@@ -1194,6 +1194,11 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
                                procp->pc_release(rqstp, NULL, rqstp->rq_resp);
                        goto dropit;
                }
+               if (*statp == rpc_autherr_badcred) {
+                       if (procp->pc_release)
+                               procp->pc_release(rqstp, NULL, rqstp->rq_resp);
+                       goto err_bad_auth;
+               }
                if (*statp == rpc_success &&
                    (xdr = procp->pc_encode) &&
                    !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) {
This page took 0.024096 seconds and 5 git commands to generate.