From b1e753e0043c488c6f88703e9cdcb0c7f33cb392 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 10 May 2001 00:00:53 +0000 Subject: [PATCH] Fix null termination buglet --- servers/slapd/schema_init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 66787dca49..2aa6613417 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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' " -- 2.39.2