From e22cbe5b7c93d021c26813ab2a871a6c226b53b9 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Sat, 12 May 2012 21:32:30 -0400 Subject: [PATCH] --- yaml --- r: 309845 b: refs/heads/master c: 1a308118c238c5aa0af3d303b42fa6bbee279394 h: refs/heads/master i: 309843: 7199556c4a50d8d50e919df94d696411555c96d0 v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfs4state.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 2e5cd1c644f6..5cc57c97568c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ea236d0704b9b9e7742b107313bbdddbba62724a +refs/heads/master: 1a308118c238c5aa0af3d303b42fa6bbee279394 diff --git a/trunk/fs/nfsd/nfs4state.c b/trunk/fs/nfsd/nfs4state.c index f372a6edef34..c88f5c103e87 100644 --- a/trunk/fs/nfsd/nfs4state.c +++ b/trunk/fs/nfsd/nfs4state.c @@ -1553,8 +1553,10 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, conf = find_confirmed_client_by_str(dname, strhashval); if (conf) { if (!clp_used_exchangeid(conf)) { - status = nfserr_clid_inuse; /* XXX: ? */ - goto out; + if (exid->flags & EXCHGID4_FLAG_UPD_CONFIRMED_REC_A) { + status = nfserr_inval; /* buggy client */ + goto out; + } } if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { /* 18.35.4 case 9 */ @@ -1574,6 +1576,10 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, expire_client(conf); goto out_new; } + if (!clp_used_exchangeid(conf)) { + status = nfserr_inval; + goto out; + } /* * Set bit when the owner id and verifier map to an already * confirmed client id (18.35.3).