]> git.ipfire.org Git - thirdparty/samba.git/commit
libsmb: Fix directory listing against old servers
authorVolker Lendecke <vl@samba.org>
Thu, 1 Jun 2023 13:57:26 +0000 (15:57 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 1 Jun 2023 21:54:41 +0000 (21:54 +0000)
commitf30f5793ad592e193546586b765837c0ac9f5647
tree891406d6b56e690e2f8846d5986a11a7e6a0d877
parente86234f3d61c62e4365e1ea105bdd29feaf7ccbe
libsmb: Fix directory listing against old servers

cli_list_trans_recv() can be called multiple times. When it's done, it
return NT_STATUS_OK and set *finfo to NULL. cli_list_old_recv() did
not do the NULL part, so smbclient would endlessly loop.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15382

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun  1 21:54:42 UTC 2023 on atb-devel-224
selftest/knownfail.d/old-dirlist [deleted file]
source3/libsmb/clilist.c