From: Howard Chu Date: Fri, 9 Apr 2010 18:30:29 +0000 (+0000) Subject: ITS#6510 ignore referrals on Bind response X-Git-Tag: MIGRATION_CVS2GIT~652 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5302c2431f520ee2dddc7e5356f47897582827a;p=openldap ITS#6510 ignore referrals on Bind response --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 01f8d51cb1..615d240ffa 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -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;