ITS#8743 Initialise the metafilter we allocate

This commit is contained in:
Ondřej Kuzník 2019-05-13 13:07:11 +01:00
parent 7ca538ff87
commit 5957cbb660

View File

@ -2220,7 +2220,7 @@ meta_back_cf_gen( ConfigArgs *c )
case LDAP_BACK_CFG_FILTER: {
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 );
if ( rc ) {
char regerr[ SLAP_TEXT_BUFLEN ];