mirror of
https://github.com/samba-team/samba.git
synced 2025-10-26 23:33:15 +03:00
r2495: cope properly with STATUS_NO_MORE_FILES in old search client code
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
25f725c9be
commit
878729b7d9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user