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

This commit is contained in:
Pierangelo Masarati 2004-06-17 18:27:51 +00:00
parent 87c28866de
commit 40e42fcd11

View File

@ -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 );