mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +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,
|
||||
&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 New Issue
Block a user