]> git.sur5r.net Git - openldap/commitdiff
Fix null termination buglet
authorKurt Zeilenga <kurt@openldap.org>
Thu, 10 May 2001 00:00:53 +0000 (00:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 10 May 2001 00:00:53 +0000 (00:00 +0000)
servers/slapd/schema_init.c

index 66787dca49847cb9da4c2f7c41eca9ec95708901..2aa66134171bace6ced6583411366f048e924eda 100644 (file)
@@ -48,7 +48,6 @@
 /* unimplemented matching routines */
 #define caseIgnoreListMatch                            NULL
 #define caseIgnoreListSubstringsMatch  NULL
-#define presentationAddressMatch               NULL
 #define protocolInformationMatch               NULL
 #define integerFirstComponentMatch             NULL
 
@@ -370,6 +369,8 @@ nameUIDNormalize(
 
                out->bv_val = dn;
                out->bv_len = dnlen + uidlen;
+
+               out->bv_val[out->bv_len] = '\0';
        }
 
        *normalized = out;
@@ -1879,6 +1880,8 @@ integerNormalize(
                newval->bv_val[newval->bv_len++] = *p;
        }
 
+       newval->bv_val[newval->bv_len] = '\0';
+
 done:
        *normalized = newval;
        return LDAP_SUCCESS;
@@ -4023,7 +4026,7 @@ struct mrule_defs_rec mrule_defs[] = {
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.43 )",
                SLAP_MR_EQUALITY | SLAP_MR_EXT,
                NULL, NULL,
-               presentationAddressMatch, NULL, NULL,
+               NULL, NULL, NULL,
                NULL},
 
        {"( 2.5.13.23 NAME 'uniqueMemberMatch' "