]> git.sur5r.net Git - openldap/commitdiff
Referral hack
authorKurt Zeilenga <kurt@openldap.org>
Tue, 30 May 2000 18:32:10 +0000 (18:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 30 May 2000 18:32:10 +0000 (18:32 +0000)
libraries/libldap/request.c

index 2d93469e97239f8a410cc499aae39532d1a20d5a..488317d7fde7fdc518cb85b9e9608b09aee46fa2 100644 (file)
@@ -653,15 +653,12 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp )
                        continue;
                }
 
-               /* NOTE! This code treats "ldap://host/" differently
-                * from "ldap://host". The behavior is wrong, but is
-                * left here intentionally to maintain compatibility
-                * with OpenLDAP 1.x and UMich 3.3 clients.
-                */
                *hadrefp = 1;
+
                if (( refdn = strchr( tmpref, '/' )) != NULL ) {
                        *refdn++ = '\0';
-                       newdn = 1;
+                       newdn = refdn[0] != '?' && refdn[0] != '\0';
+
                } else {
                        newdn = 0;
                }