mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
nfscl: Fix processing of a rare Rename reply case
When delegations are enabled (they are not by default in the FreeBSD NFSv4 server), rename will check for and return delegations. If the second of these DelegReturn operations were to fail (they rarely do), then the code would not retry the rename with returning delegations, as it is intended to do. The patch fixes the problem, since the DelegReturn reply status is the second iteration of the loop and not the first iteration. As noted, this bug would have rarely manifested a problem, since DelegReturn operations do not normally fail. MFC after: 2 weeks
This commit is contained in:
parent
7d0ee5ebd0
commit
6aded1e6b2
1 changed files with 1 additions and 1 deletions
|
|
@ -3001,7 +3001,7 @@ tryagain:
|
|||
ND_NFSV4) {
|
||||
NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
|
||||
if (*(tl + 1)) {
|
||||
if (i == 0 && ret > 1) {
|
||||
if (i == 1 && ret > 1) {
|
||||
/*
|
||||
* If the Delegreturn failed, try again
|
||||
* without it. The server will Recall, as
|
||||
|
|
|
|||
Loading…
Reference in a new issue