summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-24 15:21:32 +0200
committerVolker Lendecke <vlendec@samba.org>2011-07-24 16:37:19 +0200
commit57a0f344a192112b31bb00bef79f3e5e4b747cfe (patch)
treeb6854b28cef231c50fa5df50f12345494029281d
parent75244137510a51df2a8602160b02a3acc6e6c472 (diff)
downloadsamba-57a0f344a192112b31bb00bef79f3e5e4b747cfe.tar.gz
samba-57a0f344a192112b31bb00bef79f3e5e4b747cfe.tar.bz2
samba-57a0f344a192112b31bb00bef79f3e5e4b747cfe.zip
s3: Fix Coverity ID 2596, REVERSE_INULL
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 24 16:37:19 CEST 2011 on sn-devel-104
-rw-r--r--source3/libsmb/clidfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 97458e5d47..d729649286 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -1032,12 +1032,13 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
uint16 cnum;
char *newextrapath = NULL;
NTSTATUS status;
- const char *remote_name = cli_state_remote_name(cli);
+ const char *remote_name;
if (!cli || !sharename) {
return false;
}
+ remote_name = cli_state_remote_name(cli);
cnum = cli_state_get_tid(cli);
/* special case. never check for a referral on the IPC$ share */