]> git.sur5r.net Git - openldap/commitdiff
make sure data is reset
authorPierangelo Masarati <ando@openldap.org>
Tue, 1 Feb 2011 22:58:41 +0000 (22:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 1 Feb 2011 22:58:41 +0000 (22:58 +0000)
servers/slapd/overlays/rwmmap.c

index 19feed10dfa4f7b2104feea16ddec99a6dd3e005..d961e052e34cc3fa5a31265ef1124dbf897e1673 100644 (file)
@@ -209,7 +209,7 @@ rwm_map_attrnames(
        }
 
        assert( i > 0 || x > 0 );
-       *anp = op->o_tmpalloc( ( i + x + 1 )* sizeof( AttributeName ),
+       *anp = op->o_tmpcalloc( ( i + x + 1 ), sizeof( AttributeName ),
                op->o_tmpmemctx );
        if ( *anp == NULL ) {
                return LDAP_NO_MEMORY;