summaryrefslogtreecommitdiff
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
commit4d0795a21b6d097b5378b5b723f7eb06181d7962 (patch)
tree1f681764d634d3c9f2d5dc2e14be469323fdd8cd
parent58e00365c6b36454ab1c4d6409a5094a6de154f2 (diff)
downloadsamba-4d0795a21b6d097b5378b5b723f7eb06181d7962.tar.gz
samba-4d0795a21b6d097b5378b5b723f7eb06181d7962.tar.bz2
samba-4d0795a21b6d097b5378b5b723f7eb06181d7962.zip
r14133: Fix Coverity bug # 140
(This used to be commit 5007f53eb54eddff3d13df929d78385d6b158057)
-rw-r--r--source3/libsmb/clidfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index c5cf75783b..03cfd4dd40 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/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 );