1
0
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:
Andrew Tridgell
2004-09-22 05:13:32 +00:00
committed by Gerald (Jerry) Carter
parent 25f725c9be
commit 878729b7d9

View File

@@ -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;