]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 5 Nov 2011 00:20:44 +0000 (17:20 -0700)
servers/slapd/overlays/rwmmap.c

index 5141e6714a9463de3b4bc15fc6911ad62fe9da91..73ef50377f69130a88c26f56cbbe4fca45767ba0 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;