mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Fix null termination buglet
This commit is contained in:
parent
c49af58483
commit
b1e753e004
@ -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' "
|
||||
|
Loading…
Reference in New Issue
Block a user