From 15c8ad1f46e30c53c2e2046d617e88e93d23b59b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 1 Feb 2011 22:58:41 +0000 Subject: [PATCH] make sure data is reset --- servers/slapd/overlays/rwmmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5