mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r17678: don't free result message twice
(This used to be commit e3908818198bf0f89c1140e659ab2140bdfbc323)
This commit is contained in:
parent
b22105f1ac
commit
862ba26172
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user