From 2bc47b688af4f9d36e0fa0f86ea3ff497c063325 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 6 Mar 2008 11:27:49 +0100 Subject: [PATCH] Check the right pointer for non-NULL Fix Coverity ID 558, 559 (cherry picked from commit 8e33d19d93ef57a9438aad085aaf04b7c09fe09b) --- source/libsmb/clidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/clidfs.c b/source/libsmb/clidfs.c index 16582f80490..971cde12527 100644 --- a/source/libsmb/clidfs.c +++ b/source/libsmb/clidfs.c @@ -1054,7 +1054,7 @@ static bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, split_dfs_path(ctx, refs[0].dfspath, pp_newserver, pp_newshare, &newextrapath ); - if (!pp_newserver || !pp_newshare) { + if ((*pp_newserver == NULL) || (*pp_newshare == NULL)) { return false; } -- 2.11.4.GIT