mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
vfs_read_dirent: increment ncookies after adding a cookie
It seems that at present vfs_read_dirent() is used only with filesystems that do not support cookies, so the bug never manifested itself. MFC after: 1 week
This commit is contained in:
parent
44e44413d4
commit
27d4b35f6e
1 changed files with 1 additions and 0 deletions
|
|
@ -5053,6 +5053,7 @@ vfs_read_dirent(struct vop_readdir_args *ap, struct dirent *dp, off_t off)
|
|||
*ap->a_cookies = realloc(*ap->a_cookies,
|
||||
(*ap->a_ncookies + 1) * sizeof(u_long), M_TEMP, M_WAITOK | M_ZERO);
|
||||
(*ap->a_cookies)[*ap->a_ncookies] = off;
|
||||
*ap->a_ncookies += 1;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue