]> git.sur5r.net Git - openldap/commitdiff
DELETE needs pointer initialization like EMIT (ITS#7526)
authorPierangelo Masarati <ando@OpenLDAP.org>
Tue, 12 Feb 2013 22:23:40 +0000 (23:23 +0100)
committerPierangelo Masarati <ando@OpenLDAP.org>
Tue, 12 Feb 2013 22:28:18 +0000 (23:28 +0100)
servers/slapd/back-meta/config.c

index f3a6d017f289a114559b2bd229eb3a7019234dc4..9cd5fa3db12f576f46a3c4c8d8726ba90fa780fc 100644 (file)
@@ -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 */