From: Jeremy Allison Date: Tue, 22 Mar 2005 21:22:59 +0000 (+0000) Subject: r5970: Fix old bug where ff_searchcount was being compared -1 ! This caused a X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5064 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ed7e30cbb3e194a08d5d9b46993652666193bec;p=thirdparty%2Fsamba.git r5970: Fix old bug where ff_searchcount was being compared -1 ! This caused a filename to be processed twice. Jeremy. --- diff --git a/source/libsmb/clilist.c b/source/libsmb/clilist.c index 704babc919b..5138bca8df1 100644 --- a/source/libsmb/clilist.c +++ b/source/libsmb/clilist.c @@ -283,7 +283,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, /* put in a length for the last entry, to ensure we can chain entries into the next packet */ - for (p2=p,i=0;i<(ff_searchcount-1);i++) { + for (p2=p,i=0;i