Skip to content
Snippets Groups Projects
Commit 40e42fcd authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

res is already freed by ldap_parse_reference() (ITS#3190)

parent 87c28866
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment