mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
res is already freed by ldap_parse_reference() (ITS#3190)
This commit is contained in:
parent
87c28866de
commit
40e42fcd11
1 changed files with 1 additions and 3 deletions
|
|
@ -388,6 +388,7 @@ new_candidate:;
|
|||
|
||||
rc = ldap_parse_reference( lsc->ld, res,
|
||||
&references, &rs->sr_ctrls, 1 );
|
||||
res = NULL;
|
||||
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
continue;
|
||||
|
|
@ -422,9 +423,6 @@ new_candidate:;
|
|||
rs->sr_ctrls = NULL;
|
||||
}
|
||||
|
||||
ldap_msgfree( res );
|
||||
res = NULL;
|
||||
|
||||
} else {
|
||||
rs->sr_err = ldap_result2error( lsc->ld,
|
||||
res, 1 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue