summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-22 01:13:45 +0000
committerAndrew Tridgell <tridge@samba.org>2006-08-22 01:13:45 +0000
commita0cda10fa373c377bf8d41b0ead735fbb4d01468 (patch)
tree58af42a076b75b9b27f46f3e1486768d1867e450 /source/lib/ldb/ldb_ldap
parent152ab9a4da2fb90822e5444be68452290be0862c (diff)
downloadsamba-a0cda10fa373c377bf8d41b0ead735fbb4d01468.tar.gz
samba-a0cda10fa373c377bf8d41b0ead735fbb4d01468.tar.xz
samba-a0cda10fa373c377bf8d41b0ead735fbb4d01468.zip
r17678: don't free result message twice
Diffstat (limited to 'source/lib/ldb/ldb_ldap')
-rw-r--r--source/lib/ldb/ldb_ldap/ldb_ldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/ldb/ldb_ldap/ldb_ldap.c b/source/lib/ldb/ldb_ldap/ldb_ldap.c
index 74ef1fcb478..9de67e5ad7f 100644
--- a/source/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -557,7 +557,7 @@ static int lldb_parse_result(struct ldb_handle *handle, LDAPMessage *result)
case LDAP_RES_SEARCH_REFERENCE:
if (ldap_parse_result(lldb->ldap, result, &handle->status,
&matcheddnp, &errmsgp,
- &referralsp, &serverctrlsp, 1) != LDAP_SUCCESS) {
+ &referralsp, &serverctrlsp, 0) != LDAP_SUCCESS) {
ret = LDB_ERR_OPERATIONS_ERROR;
goto error;
}
@@ -581,7 +581,7 @@ static int lldb_parse_result(struct ldb_handle *handle, LDAPMessage *result)
case LDAP_RES_SEARCH_RESULT:
if (ldap_parse_result(lldb->ldap, result, &handle->status,
&matcheddnp, &errmsgp,
- &referralsp, &serverctrlsp, 1) != LDAP_SUCCESS) {
+ &referralsp, &serverctrlsp, 0) != LDAP_SUCCESS) {
handle->status = LDB_ERR_OPERATIONS_ERROR;
goto error;
}
@@ -609,7 +609,7 @@ static int lldb_parse_result(struct ldb_handle *handle, LDAPMessage *result)
case LDAP_RES_MODDN:
if (ldap_parse_result(lldb->ldap, result, &handle->status,
&matcheddnp, &errmsgp,
- &referralsp, &serverctrlsp, 1) != LDAP_SUCCESS) {
+ &referralsp, &serverctrlsp, 0) != LDAP_SUCCESS) {
handle->status = LDB_ERR_OPERATIONS_ERROR;
goto error;
}