]> git.sur5r.net Git - openldap/commitdiff
fix misinitialized UNDEFINED attribute type; reordered members of AttributeType becau...
authorPierangelo Masarati <ando@openldap.org>
Sat, 17 Nov 2001 14:09:38 +0000 (14:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 17 Nov 2001 14:09:38 +0000 (14:09 +0000)
servers/slapd/schema_prep.c
servers/slapd/slap.h

index 4ba2607d8423a12de4bb90e4febb51c35cd07b52..9ae8843b22799144f376a09e933a6d597ad88b09 100644 (file)
@@ -217,15 +217,17 @@ struct slap_schema_ad_map {
 };
 
 static AttributeType slap_at_undefined = {
-       "UNDEFINED", /* cname */
        { "1.1.1", NULL, NULL, 1, NULL,
                NULL, NULL, NULL, NULL,
-               0, 0, 0, 1, 3 },
+               0, 0, 0, 1, 3 }, /* LDAPAttributeType */
+       { sizeof( "UNDEFINED" ) - 1, "UNDEFINED" }, /* cname */
        NULL, /* sup */
        NULL, /* subtypes */
        NULL, NULL, NULL, NULL, /* matching rules */
        NULL, /* syntax (this may need to be defined) */
+       NULL, /* attribute description */
        NULL  /* next */
+       /* mutex (don't know how to initialize it :) */
 };
 
 struct slap_schema_mr_map {
index b3e115f085accba39c428cc086f264b00668650d..9ebe047e77c619e80cb42e009966cd3062dd1bb7 100644 (file)
@@ -378,9 +378,9 @@ typedef struct slap_attribute_type {
        MatchingRule                    *sat_ordering;
        MatchingRule                    *sat_substr;
        Syntax                          *sat_syntax;
-       ldap_pvt_thread_mutex_t         sat_ad_mutex;
        struct slap_attr_desc           *sat_ad;
        struct slap_attribute_type      *sat_next;
+       ldap_pvt_thread_mutex_t         sat_ad_mutex;
 #define sat_oid                        sat_atype.at_oid
 #define sat_names              sat_atype.at_names
 #define sat_desc               sat_atype.at_desc