From f1e05336f16b8d984a2353601b40a59cb125445e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 9 Sep 2005 11:43:13 +0000 Subject: [PATCH] ITS#3979 restore old (RE21, RE22) search order --- servers/slapd/backglue.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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(); -- 2.39.5