1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-30 13:18:05 +03:00

Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.

Jeremy.
This commit is contained in:
Jeremy Allison 2008-12-08 14:24:38 -08:00
parent 15c942657d
commit 3878dad0c6

View File

@ -417,7 +417,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
}
SAFE_FREE(mask);
if (ff_searchcount > 0) {
if (ff_searchcount > 0 && ff_eos == 0 && finfo.name) {
mask = SMB_STRDUP(finfo.name);
} else {
mask = SMB_STRDUP("");