mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#8743 Initialise the metafilter we allocate
This commit is contained in:
parent
7ca538ff87
commit
5957cbb660
@ -2220,7 +2220,7 @@ meta_back_cf_gen( ConfigArgs *c )
|
|||||||
|
|
||||||
case LDAP_BACK_CFG_FILTER: {
|
case LDAP_BACK_CFG_FILTER: {
|
||||||
metafilter_t *mf, **m2;
|
metafilter_t *mf, **m2;
|
||||||
mf = ch_malloc( sizeof( metafilter_t ));
|
mf = ch_calloc( 1, sizeof( metafilter_t ));
|
||||||
rc = regcomp( &mf->mf_regex, c->argv[1], REG_EXTENDED );
|
rc = regcomp( &mf->mf_regex, c->argv[1], REG_EXTENDED );
|
||||||
if ( rc ) {
|
if ( rc ) {
|
||||||
char regerr[ SLAP_TEXT_BUFLEN ];
|
char regerr[ SLAP_TEXT_BUFLEN ];
|
||||||
|
Loading…
Reference in New Issue
Block a user