summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-17 01:44:25 +0000
committerJeremy Allison <jra@samba.org>1998-11-17 01:44:25 +0000
commit6db04cd4622289dbdbd0c6d4d084baa8f84c40c2 (patch)
tree22c19a0642f049add7d3edc8589e066fe0099fd2 /source
parentc1a3346547d887bfd2402a6b0bcc185680eb4470 (diff)
downloadsamba-6db04cd4622289dbdbd0c6d4d084baa8f84c40c2.tar.gz
samba-6db04cd4622289dbdbd0c6d4d084baa8f84c40c2.tar.xz
samba-6db04cd4622289dbdbd0c6d4d084baa8f84c40c2.zip
Fixed missing NULL check in tar op.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/client/client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 6d9482ff28e..8356d99b7bd 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -1718,7 +1718,6 @@ struct cli_state *do_connect(char *server, char *share)
static BOOL process(char *base_directory)
{
cli = do_connect(desthost, service);
-
if (!cli) {
return(False);
}
@@ -1836,7 +1835,8 @@ handle a -L query
static int do_host_query(char *query_host, int port)
{
cli = do_connect(query_host, "IPC$");
- if (!cli) return 1;
+ if (!cli)
+ return 1;
browse_host(True);
list_servers(workgroup);
@@ -1854,6 +1854,8 @@ static int do_tar_op(int port, char *base_directory)
{
int ret;
cli = do_connect(desthost, service);
+ if (!cli)
+ return 1;
recurse=True;