]> git.sur5r.net Git - openldap/commitdiff
ITS#3979 restore old (RE21, RE22) search order
authorHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 11:43:13 +0000 (11:43 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 11:43:13 +0000 (11:43 +0000)
servers/slapd/backglue.c

index e2220fa826096d5e43cab3f2359345dbf36c4aae..29a781102fa8e2a6d918f6fc7f895dde946d4208 100644 (file)
@@ -909,16 +909,9 @@ glue_sub_add( BackendDB *be, int advert, int online )
                SLAP_DBFLAGS( be ) |= SLAP_DBFLAG_GLUE_ADVERTISE;
 
        ga = ch_malloc( sizeof( glue_Addrec ));
-       ga->ga_next = NULL;
+       ga->ga_next = ga_list;
        ga->ga_be = be;
-       if ( ga_list ) {
-               glue_Addrec *g2 = ga_list;
-
-               for ( ; g2 && g2->ga_next; g2=g2->ga_next );
-               g2->ga_next = ga;
-       } else {
-               ga_list = ga;
-       }
+       ga_list = ga;
 
        if ( online )
                rc = glue_sub_attach();