Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38392
b: refs/heads/master
c: 8f8e05c
h: refs/heads/master
v: v3
  • Loading branch information
J.Bruce Fields authored and Linus Torvalds committed Oct 4, 2006
1 parent 45ae195 commit de1d7f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b304bc5bfccc82b856e876e829c260df8e67ff2
refs/heads/master: 8f8e05c5708d7e9017c47f395f8b1498f7f52922
6 changes: 3 additions & 3 deletions trunk/net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ svc_process(struct svc_rqst *rqstp)
u32 dir, prog, vers, proc;
__be32 auth_stat, rpc_stat;
int auth_res;
__be32 *accept_statp;
__be32 *reply_statp;

rpc_stat = rpc_success;

Expand Down Expand Up @@ -740,7 +740,7 @@ svc_process(struct svc_rqst *rqstp)
goto err_bad_rpc;

/* Save position in case we later decide to reject: */
accept_statp = resv->iov_base + resv->iov_len;
reply_statp = resv->iov_base + resv->iov_len;

svc_putnl(resv, 0); /* ACCEPT */

Expand Down Expand Up @@ -888,7 +888,7 @@ svc_process(struct svc_rqst *rqstp)
dprintk("svc: authentication failed (%d)\n", ntohl(auth_stat));
serv->sv_stats->rpcbadauth++;
/* Restore write pointer to location of accept status: */
xdr_ressize_check(rqstp, accept_statp);
xdr_ressize_check(rqstp, reply_statp);
svc_putnl(resv, 1); /* REJECT */
svc_putnl(resv, 1); /* AUTH_ERROR */
svc_putnl(resv, ntohl(auth_stat)); /* status */
Expand Down

0 comments on commit de1d7f1

Please sign in to comment.