diff options
author | Tim Potter <tpot@samba.org> | 2001-08-12 23:53:26 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-12 23:53:26 +0000 |
commit | a7863f0f033b31838a53960e9f616d9a82081ecf (patch) | |
tree | 0d853337e269da6715758c8ba1b8ebb50c825911 | |
parent | fa8e55b8b465114ce209344965c1ca0333b84db9 (diff) | |
download | samba-a7863f0f033b31838a53960e9f616d9a82081ecf.tar.gz samba-a7863f0f033b31838a53960e9f616d9a82081ecf.tar.xz samba-a7863f0f033b31838a53960e9f616d9a82081ecf.zip |
Fixed crash bug when attempting to list contents of non-existent
directory.
-rw-r--r-- | source/libsmb/clilist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libsmb/clilist.c b/source/libsmb/clilist.c index 609f5f23315..a7ba1c07adf 100644 --- a/source/libsmb/clilist.c +++ b/source/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 */ |