summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clidfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-10 08:56:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:12 -0500
commit5007f53eb54eddff3d13df929d78385d6b158057 (patch)
treec001e3c6bbd9130edda67a439b478e81cf8354a3 /source/libsmb/clidfs.c
parent9ec671c2f8547482ed08eb17a0fb771ef8fd1e51 (diff)
downloadsamba-5007f53eb54eddff3d13df929d78385d6b158057.tar.gz
samba-5007f53eb54eddff3d13df929d78385d6b158057.tar.xz
samba-5007f53eb54eddff3d13df929d78385d6b158057.zip
r14133: Fix Coverity bug # 140
Diffstat (limited to 'source/libsmb/clidfs.c')
-rw-r--r--source/libsmb/clidfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libsmb/clidfs.c b/source/libsmb/clidfs.c
index c5cf75783ba..03cfd4dd400 100644
--- a/source/libsmb/clidfs.c
+++ b/source/libsmb/clidfs.c
@@ -585,11 +585,11 @@ BOOL cli_resolve_path( const char *mountpt, struct cli_state *rootcli, const cha
SMB_STRUCT_STAT sbuf;
uint32 attributes;
- *targetcli = NULL;
-
if ( !rootcli || !path || !targetcli )
return False;
+ *targetcli = NULL;
+
/* send a trans2_query_path_info to check for a referral */
clean_path( cleanpath, path );