summaryrefslogtreecommitdiff
path: root/source4/libcli/clilist.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/clilist.c')
-rw-r--r--source4/libcli/clilist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/clilist.c b/source4/libcli/clilist.c
index 91a989d361..67a2e980ca 100644
--- a/source4/libcli/clilist.c
+++ b/source4/libcli/clilist.c
@@ -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;