ITS#6510 ignore referrals on Bind response

This commit is contained in:
Howard Chu 2010-04-09 18:30:29 +00:00
parent 81469d0ff1
commit e5302c2431

View file

@ -747,8 +747,9 @@ nextresp2:
}
/* Do we need to check for referrals? */
if ( LDAP_BOOL_GET(&ld->ld_options, LDAP_BOOL_REFERRALS) ||
lr->lr_parent != NULL )
if ( tag != LDAP_RES_BIND &&
( LDAP_BOOL_GET(&ld->ld_options, LDAP_BOOL_REFERRALS) ||
lr->lr_parent != NULL ))
{
char **refs = NULL;
ber_len_t len;