make sure data is reset

This commit is contained in:
Pierangelo Masarati 2011-02-01 22:58:41 +00:00
parent 6059ffaa00
commit 15c8ad1f46

View 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;