Fix coverity #4 for 3_0 too
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 14 Mar 2006 13:58:17 +0000 (13:58 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 14 Mar 2006 13:58:17 +0000 (13:58 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@14377 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/libmsrpc/cac_lsarpc.c

index 83d147c..72f22de 100644 (file)
@@ -440,7 +440,7 @@ domain:
       hnd->status = rpccli_lsa_query_info_policy( pipe_hnd, mem_ctx, op->in.pol, CAC_DOMAIN_INFO, &dom_name, &domain_sid);
       if(!NT_STATUS_IS_OK(hnd->status)) {
          /*if we succeeded above, report partial success*/
-         result = (result == CAC_SUCCESS) ? CAC_PARTIAL_SUCCESS : CAC_FAILURE;
+         result = CAC_FAILURE;
          goto done;
       }
       else if(result == CAC_FAILURE) {