From e5302c2431f520ee2dddc7e5356f47897582827a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 9 Apr 2010 18:30:29 +0000 Subject: [PATCH] ITS#6510 ignore referrals on Bind response --- libraries/libldap/result.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5