mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fixed crash bug when attempting to list contents of non-existent
directory.
This commit is contained in:
parent
fa8e55b8b4
commit
a7863f0f03
@ -216,6 +216,9 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (cli_is_error(cli))
|
||||
return -1;
|
||||
|
||||
if (total_received == -1) total_received = 0;
|
||||
|
||||
/* parse out some important return info */
|
||||
|
Loading…
Reference in New Issue
Block a user