]> git.sur5r.net Git - openldap/commitdiff
ITS#3979 better check for duplicate bi_open functions
authorHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 07:40:54 +0000 (07:40 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 07:40:54 +0000 (07:40 +0000)
servers/slapd/backglue.c

index 8d719ab1e3f7d03705cc82a210300813d9be878b..9a320205219dc2586cb19e2be92186cf8d06ed91 100644 (file)
@@ -477,16 +477,17 @@ glue_open (
        if (slapMode & SLAP_TOOL_MODE) {
                for (i = 0; i<gi->gi_nodes; i++) {
                        same = 0;
-                       /* Same type as our main backend? */
-                       if ( gi->gi_n[i].gn_be->bd_info == on->on_info->oi_orig )
+                       /* Same bi_open as our main backend? */
+                       if ( gi->gi_n[i].gn_be->bd_info->bi_open ==
+                               on->on_info->oi_orig->bi_open )
                                bsame = 1;
 
                        /* Loop thru the bd_info's and make sure we only
                         * invoke their bi_open functions once each.
                         */
                        for ( j = 0; j<i; j++ ) {
-                               if ( gi->gi_n[i].gn_be->bd_info ==
-                                       gi->gi_n[j].gn_be->bd_info ) {
+                               if ( gi->gi_n[i].gn_be->bd_info->bi_open ==
+                                       gi->gi_n[j].gn_be->bd_info->bi_open ) {
                                        same = 1;
                                        break;
                                }