summaryrefslogtreecommitdiff
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
commitb7c4cd9fc6460c2138750237ee4525f929e93a76 (patch)
treed065589a8499c2e3c91789729654369795def45e
parentc1af0b40274752f85ba82f5a42426dbe3d3d890c (diff)
downloadsamba-b7c4cd9fc6460c2138750237ee4525f929e93a76.tar.gz
samba-b7c4cd9fc6460c2138750237ee4525f929e93a76.tar.bz2
samba-b7c4cd9fc6460c2138750237ee4525f929e93a76.zip
Fixed missing NULL check in tar op.
Jeremy. (This used to be commit 6db04cd4622289dbdbd0c6d4d084baa8f84c40c2)
-rw-r--r--source3/client/client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 6d9482ff28..8356d99b7b 100644
--- a/source3/client/client.c
+++ b/source3/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;