summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-12 23:53:26 +0000
committerTim Potter <tpot@samba.org>2001-08-12 23:53:26 +0000
commit4da562d4dc6d197c3a7495672638e0f14838d38c (patch)
treedb464e49866965686c7370f669e825a89ef99da8
parent2e783a47076bd0994b6ce86df7ec967bc1c2da63 (diff)
downloadsamba-4da562d4dc6d197c3a7495672638e0f14838d38c.tar.gz
samba-4da562d4dc6d197c3a7495672638e0f14838d38c.tar.bz2
samba-4da562d4dc6d197c3a7495672638e0f14838d38c.zip
Fixed crash bug when attempting to list contents of non-existent
directory. (This used to be commit a7863f0f033b31838a53960e9f616d9a82081ecf)
-rw-r--r--source3/libsmb/clilist.c3
1 files changed, 3 insertions, 0 deletions
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 */