1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00

r14857: fix bugs noticed by the ibm code checker

metze
This commit is contained in:
Stefan Metzmacher
2006-04-02 11:17:07 +00:00
committed by Gerald (Jerry) Carter
parent f72e7d9dcd
commit 07626bf3c7

View File

@@ -123,8 +123,8 @@ static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call)
const char **attrs = NULL;
const char *errstr = NULL;
int success_limit = 1;
int result = LDAP_SUCCESS;
int ldb_ret;
int result = -1;
int ldb_ret = -1;
int i, j;
DEBUG(10, ("SearchRequest"));
@@ -227,7 +227,8 @@ reply:
done->dn = NULL;
done->referral = NULL;
if (ldb_ret == LDB_SUCCESS) {
if (result != -1) {
} else if (ldb_ret == LDB_SUCCESS) {
if (res->count >= success_limit) {
DEBUG(10,("SearchRequest: results: [%d]\n", res->count));
result = LDAP_SUCCESS;