mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
res is already freed by ldap_parse_reference() (ITS#3190)
This commit is contained in:
parent
87c28866de
commit
40e42fcd11
@ -388,6 +388,7 @@ new_candidate:;
|
|||||||
|
|
||||||
rc = ldap_parse_reference( lsc->ld, res,
|
rc = ldap_parse_reference( lsc->ld, res,
|
||||||
&references, &rs->sr_ctrls, 1 );
|
&references, &rs->sr_ctrls, 1 );
|
||||||
|
res = NULL;
|
||||||
|
|
||||||
if ( rc != LDAP_SUCCESS ) {
|
if ( rc != LDAP_SUCCESS ) {
|
||||||
continue;
|
continue;
|
||||||
@ -422,9 +423,6 @@ new_candidate:;
|
|||||||
rs->sr_ctrls = NULL;
|
rs->sr_ctrls = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ldap_msgfree( res );
|
|
||||||
res = NULL;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
rs->sr_err = ldap_result2error( lsc->ld,
|
rs->sr_err = ldap_result2error( lsc->ld,
|
||||||
res, 1 );
|
res, 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user