1
0
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:
Tim Potter 0001-01-01 00:00:00 +00:00
parent fa8e55b8b4
commit a7863f0f03

View File

@ -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 */