From 4da562d4dc6d197c3a7495672638e0f14838d38c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 12 Aug 2001 23:53:26 +0000 Subject: Fixed crash bug when attempting to list contents of non-existent directory. (This used to be commit a7863f0f033b31838a53960e9f616d9a82081ecf) --- source3/libsmb/clilist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/libsmb/clilist.c') diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 609f5f2331..a7ba1c07ad 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -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 */ -- cgit