summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-08-11 17:50:32 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 15:06:38 -0700
commit91785b911e95a65501e1247b008a673f73fbfaeb (patch)
tree8616bb657b99000a0c9605a0fba33248632bc6f2
parentd5b15931ee65d248ab43c9a7ba2fac44fec00c31 (diff)
downloadds-91785b911e95a65501e1247b008a673f73fbfaeb.tar.gz
ds-91785b911e95a65501e1247b008a673f73fbfaeb.tar.xz
ds-91785b911e95a65501e1247b008a673f73fbfaeb.zip
Bug 623507 - fix coverity Defect Type: Incorrect expression issues
https://bugzilla.redhat.com/show_bug.cgi?id=623507 Comment: be_list is never NULL so there is no need to check for NULL value.
-rw-r--r--ldap/servers/slapd/opshared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/opshared.c b/ldap/servers/slapd/opshared.c
index 531aa9b1..cd33d576 100644
--- a/ldap/servers/slapd/opshared.c
+++ b/ldap/servers/slapd/opshared.c
@@ -394,7 +394,7 @@ op_shared_search (Slapi_PBlock *pb, int send_result)
*/
err_code = slapi_mapping_tree_select_all(pb, be_list, referral_list, errorbuf);
if (((err_code != LDAP_SUCCESS) && (err_code != LDAP_OPERATIONS_ERROR) && (err_code != LDAP_REFERRAL))
- || ((err_code == LDAP_OPERATIONS_ERROR) && ((be_list == NULL) || be_list[0] == NULL)))
+ || ((err_code == LDAP_OPERATIONS_ERROR) && (be_list[0] == NULL)))
{
send_ldap_result(pb, err_code, NULL, errorbuf, 0, NULL);