From 47f58beb282bcc80993329a1cf3e7002141ab8fb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 22 Mar 2005 21:43:51 +0000 Subject: r5973: Fix up overwrite of last 2 bytes on clilist (could cause coredump). Jeremy. (This used to be commit b0de2d761f6697ca1f4859ba098af6162ab42027) --- source3/libsmb/clilist.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/libsmb/clilist.c') diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 5138bca8df..33bf32bb94 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -281,14 +281,11 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, dirlist = tdl; } - /* put in a length for the last entry, to ensure we can chain entries - into the next packet */ + /* we might need the lastname for continuations */ for (p2=p,i=0;i 0) { pstrcpy(mask, finfo.name); } else { -- cgit