1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

smbd: Avoid dptr_SeekDir() when overflowing the dir buffer

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-06-09 14:52:11 +02:00 committed by Jeremy Allison
parent 0b27175764
commit 91fa49c11c

View File

@ -2004,7 +2004,7 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
}
if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {
dptr_SeekDir(dirptr, prev_dirpos);
smbd_dirptr_push_overflow(dirptr, &fname, &smb_fname, mode);
}
if (!NT_STATUS_IS_OK(status)) {