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:
parent
15c942657d
commit
3878dad0c6
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user