From: Pierangelo Masarati Date: Tue, 12 Feb 2013 22:23:40 +0000 (+0100) Subject: DELETE needs pointer initialization like EMIT (ITS#7526) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=648d28fb0bba31fcde5804bc6287ba757e729ab7;p=openldap DELETE needs pointer initialization like EMIT (ITS#7526) --- diff --git a/servers/slapd/back-meta/config.c b/servers/slapd/back-meta/config.c index f3a6d017f2..9cd5fa3db1 100644 --- a/servers/slapd/back-meta/config.c +++ b/servers/slapd/back-meta/config.c @@ -1089,9 +1089,7 @@ meta_back_cf_gen( ConfigArgs *c ) assert( mi != NULL ); - if ( c->op == SLAP_CONFIG_EMIT ) { - struct berval bv = BER_BVNULL; - + if ( c->op == SLAP_CONFIG_EMIT || c->op == LDAP_MOD_DELETE ) { if ( !mi ) return 1; @@ -1102,6 +1100,10 @@ meta_back_cf_gen( ConfigArgs *c ) mt = c->ca_private; mc = &mt->mt_mc; } + } + + if ( c->op == SLAP_CONFIG_EMIT ) { + struct berval bv = BER_BVNULL; switch( c->type ) { /* Base attrs */