]> git.sur5r.net Git - openldap/commitdiff
ITS#6510 ignore referrals on Bind response
authorHoward Chu <hyc@openldap.org>
Fri, 9 Apr 2010 18:30:29 +0000 (18:30 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 9 Apr 2010 18:30:29 +0000 (18:30 +0000)
libraries/libldap/result.c

index 01f8d51cb1b578cbfe0ebac8bd7232aa97349da5..615d240ffa41d3fb5ee470877e3875a7bd654236 100644 (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;