mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r2495: cope properly with STATUS_NO_MORE_FILES in old search client code
(This used to be commit 878729b7d97869a3d6dacea115ed4af2fd18e93c)
This commit is contained in:
parent
1d2611df82
commit
e6e4e3e0a3
@ -300,7 +300,10 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
|
||||
&next_parms,
|
||||
(void*)&state,
|
||||
smbcli_list_old_callback);
|
||||
|
||||
|
||||
if (NT_STATUS_EQUAL(status, STATUS_NO_MORE_FILES)) {
|
||||
break;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
talloc_destroy(state.mem_ctx);
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user