From: Pierangelo Masarati Date: Tue, 1 Feb 2011 22:58:41 +0000 (+0000) Subject: make sure data is reset X-Git-Tag: MIGRATION_CVS2GIT~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=15c8ad1f46e30c53c2e2046d617e88e93d23b59b;p=openldap make sure data is reset --- diff --git a/servers/slapd/overlays/rwmmap.c b/servers/slapd/overlays/rwmmap.c index 19feed10df..d961e052e3 100644 --- a/servers/slapd/overlays/rwmmap.c +++ b/servers/slapd/overlays/rwmmap.c @@ -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;