From 878729b7d97869a3d6dacea115ed4af2fd18e93c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 22 Sep 2004 05:13:32 +0000 Subject: [PATCH] r2495: cope properly with STATUS_NO_MORE_FILES in old search client code --- source/libcli/clilist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/libcli/clilist.c b/source/libcli/clilist.c index 91a989d361f..67a2e980caa 100644 --- a/source/libcli/clilist.c +++ b/source/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;