From 5957cbb6604e4d4cc599b4b3bb05e40de1f77b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 13 May 2019 13:07:11 +0100 Subject: [PATCH] ITS#8743 Initialise the metafilter we allocate --- servers/slapd/back-meta/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-meta/config.c b/servers/slapd/back-meta/config.c index ca6c792f18..be034f6aa9 100644 --- a/servers/slapd/back-meta/config.c +++ b/servers/slapd/back-meta/config.c @@ -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 ];