From a2c3e56a499fd6fbeb29be62fbacd3c99c1b3028 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sat, 18 Aug 2007 17:29:39 +0000 Subject: r24543: Apply missing portion of correction for bug 4750 (This used to be commit 5a83c306bb80b492a3c3d5e86b0767dc45e5c262) --- source3/libsmb/libsmbclient.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- cgit