]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9576 Put the used table in ConfigArgs
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 8 Jun 2021 08:52:43 +0000 (09:52 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 21 Jun 2021 16:36:06 +0000 (16:36 +0000)
servers/lloadd/config.c
servers/slapd/bconfig.c
servers/slapd/config.c
servers/slapd/slap-config.h

index aea0d26e1dc530b54c823dafac56ce505e2fbc89..03b81cc7714fabc0530c1caf8270fa5767a423f5 100644 (file)
@@ -2121,7 +2121,8 @@ lload_config_find_keyword( ConfigTable *Conf, ConfigArgs *c )
         }
         c->line = c->tline;
     }
-    return Conf + i;
+    c->ca_desc = Conf + i;
+    return c->ca_desc;
 }
 
 int
index f86e24b6b8a930229a7e8660b0327606661f5430..712686f944f4b77b732620481ad79a7f67bb1ba7 100644 (file)
@@ -4822,6 +4822,7 @@ config_find_table( ConfigOCs **colst, int nocs, AttributeDescription *ad,
                for (i=0; colst[j]->co_table[i].name; i++)
                        if ( colst[j]->co_table[i].ad == ad ) {
                                ca->table = colst[j]->co_type;
+                               ca->ca_desc = colst[j]->co_table+i;
                                return &colst[j]->co_table[i];
                        }
        }
index bd6855def75c6d1fe122c403dccf9c292d1731b1..64c8951b5f1f32560ab45d7f60ba27c74f2d2534 100644 (file)
@@ -143,7 +143,8 @@ ConfigTable *config_find_keyword(ConfigTable *Conf, ConfigArgs *c) {
                }
                c->line = c->tline;
        }
-       return Conf+i;
+       c->ca_desc = Conf+i;
+       return c->ca_desc;
 }
 
 int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
index a42a21f599245d579e59e1f8a2b0de389bdaa496..8403e110477e51eea152c1db2556079f93fef247 100644 (file)
@@ -176,7 +176,8 @@ typedef struct config_args_s {
 #define SLAP_CONFIG_CLEANUP_MAX        16
 #endif
        ConfigDriver *cleanups[SLAP_CONFIG_CLEANUP_MAX];
-       ConfigType table;       /* which config table did we come from */
+       ConfigType table;       /* what kind of config table did we come from */
+       ConfigTable *ca_desc;
        int num_cleanups;
 } ConfigArgs;