From: Volker Lendecke Date: Thu, 6 Mar 2008 10:27:49 +0000 (+0100) Subject: Check the right pointer for non-NULL X-Git-Tag: samba-3.3.0pre1~3426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e33d19d93ef57a9438aad085aaf04b7c09fe09b;p=thirdparty%2Fsamba.git Check the right pointer for non-NULL Fix Coverity ID 558, 559 --- 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; }