summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap/ldb_ldap.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-22 01:13:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:22 -0500
commit862ba2617205832d4d5f0db07c54c4cc436a0f3d (patch)
treefb571b557ad83e531522719724a0753091614e30 /source4/lib/ldb/ldb_ldap/ldb_ldap.c
parentb22105f1ac1649644a82100da36e12335657b73d (diff)
downloadsamba-862ba2617205832d4d5f0db07c54c4cc436a0f3d.tar.gz
samba-862ba2617205832d4d5f0db07c54c4cc436a0f3d.tar.bz2
samba-862ba2617205832d4d5f0db07c54c4cc436a0f3d.zip
r17678: don't free result message twice
(This used to be commit e3908818198bf0f89c1140e659ab2140bdfbc323)
Diffstat (limited to 'source4/lib/ldb/ldb_ldap/ldb_ldap.c')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index 74ef1fcb47..9de67e5ad7 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/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;
}