]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fixed crash bug when attempting to list contents of non-existent
authorTim Potter <tpot@samba.org>
Sun, 12 Aug 2001 23:53:26 +0000 (23:53 +0000)
committerTim Potter <tpot@samba.org>
Sun, 12 Aug 2001 23:53:26 +0000 (23:53 +0000)
directory.

source/libsmb/clilist.c

index 609f5f23315cabd2f90bb8a8f431d777a27c89ff..a7ba1c07adf8ea401d5a235a06822e2783d6454c 100644 (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 */