From: Howard Chu Date: Fri, 9 Sep 2005 11:43:13 +0000 (+0000) Subject: ITS#3979 restore old (RE21, RE22) search order X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~450 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1e05336f16b8d984a2353601b40a59cb125445e;p=openldap ITS#3979 restore old (RE21, RE22) search order --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index e2220fa826..29a781102f 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -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();