summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-08-18 17:29:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:55 -0500
commita2c3e56a499fd6fbeb29be62fbacd3c99c1b3028 (patch)
tree0369ec1222f58bda535ab0f6fed785c417a6f391
parent24c594d0b3e5409f5622f3b682dcc4cda0412d01 (diff)
downloadsamba-a2c3e56a499fd6fbeb29be62fbacd3c99c1b3028.tar.gz
samba-a2c3e56a499fd6fbeb29be62fbacd3c99c1b3028.tar.bz2
samba-a2c3e56a499fd6fbeb29be62fbacd3c99c1b3028.zip
r24543: Apply missing portion of correction for bug 4750
(This used to be commit 5a83c306bb80b492a3c3d5e86b0767dc45e5c262)
-rw-r--r--source3/libsmb/libsmbclient.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index fcc7c65a3a..dd3cbfc621 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -3536,6 +3536,11 @@ smbc_lseekdir_ctx(SMBCCTX *context,
}
+ if (offset == -1) { /* Seek to the end of the list */
+ dir->dir_next = NULL;
+ return 0;
+ }
+
/* Now, run down the list and make sure that the entry is OK */
/* This may need to be changed if we change the format of the list */