summaryrefslogtreecommitdiff
path: root/source4/libcli/clilist.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-22 05:13:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:57 -0500
commite6e4e3e0a3f2222efeca7bee535fe26162c974c8 (patch)
treeba85b100514c49d4720a4ae41f7b0a266721adfe /source4/libcli/clilist.c
parent1d2611df82e80d7b5af7f75ffd66ce18ea68858e (diff)
downloadsamba-e6e4e3e0a3f2222efeca7bee535fe26162c974c8.tar.gz
samba-e6e4e3e0a3f2222efeca7bee535fe26162c974c8.tar.bz2
samba-e6e4e3e0a3f2222efeca7bee535fe26162c974c8.zip
r2495: cope properly with STATUS_NO_MORE_FILES in old search client code
(This used to be commit 878729b7d97869a3d6dacea115ed4af2fd18e93c)
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;