mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
nfscl: Fix handling of a bad session slot (NFSv4.1/4.2)
When a session has been marked defunct by the server sending a NFSERR_BADSESSION reply to the NFSv4.1/4.2 client, nfsv4_sequencelookup() returns NFSERR_BADSESSION without actually assigning a session slot. Without this patch, newnfs_request() would erroneously free slot 0. This could result in the slot being reused prematurely, but most likely just generated a "freeing free slot!!" console message. This patch fixes the code to not do the erroneous freeing of the slot for this case. PR: 260011 MFC after: 1 week
This commit is contained in:
parent
c1a0ab5ec5
commit
2b612c9d3b
|
@ -1080,12 +1080,12 @@ newnfs_request(struct nfsrv_descript *nd, struct nfsmount *nmp,
|
|||
}
|
||||
slot = nd->nd_slotid;
|
||||
}
|
||||
freeslot = slot;
|
||||
} else if (slot != 0) {
|
||||
printf("newnfs_request: Bad "
|
||||
"session slot=%d\n", slot);
|
||||
slot = 0;
|
||||
}
|
||||
freeslot = slot;
|
||||
if (retseq != sep->nfsess_slotseq[slot])
|
||||
printf("retseq diff 0x%x\n",
|
||||
retseq);
|
||||
|
|
Loading…
Reference in a new issue