leaving one max_component len constant
both NFS41_MAX_COMPONENT_SIZE and NFS41_MAX_COMPONENT_LEN represented the same value.
This commit is contained in:
parent
11a13bef0f
commit
9dd4708aed
3 changed files with 3 additions and 5 deletions
|
|
@ -459,7 +459,7 @@ static int handle_readdir(nfs41_upcall *upcall)
|
|||
bool_t eof;
|
||||
/* make sure we allocate enough space for one nfs41_readdir_entry */
|
||||
const uint32_t max_buf_len = max(args->buf_len,
|
||||
sizeof(nfs41_readdir_entry) + NFS41_MAX_COMPONENT_SIZE);
|
||||
sizeof(nfs41_readdir_entry) + NFS41_MAX_COMPONENT_LEN);
|
||||
|
||||
dprintf(1, "-> handle_nfs41_dirquery(%s,%d,%d,%d)\n",
|
||||
args->filter, args->initial, args->restart, args->single);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue