Check the right pointer for non-NULL
authorVolker Lendecke <vl@samba.org>
Thu, 6 Mar 2008 10:27:49 +0000 (11:27 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 6 Mar 2008 10:33:26 +0000 (11:33 +0100)
Fix Coverity ID 558, 559
(This used to be commit 8e33d19d93ef57a9438aad085aaf04b7c09fe09b)

source3/libsmb/clidfs.c

index 16582f80490693db73d3151031828a8839b1a509..971cde12527cb8716892aff5842d73b068fd866b 100644 (file)
@@ -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;
        }