]> git.sur5r.net Git - openldap/commitdiff
fix potential NULL dereferencing (detected by Coverity)
authorPierangelo Masarati <ando@openldap.org>
Wed, 20 Jun 2007 23:44:43 +0000 (23:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 20 Jun 2007 23:44:43 +0000 (23:44 +0000)
servers/slapd/syntax.c

index a2c201a2e8f4c642592d0871e84ee812638ee33c..b9fb273fe2176cee579c6dd8ba62b01d2ce7a239 100644 (file)
@@ -194,7 +194,7 @@ syn_add(
                for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ )
                        ;
                
-               ssyn->ssyn_sups = (Syntax **)SLAP_CALLOC( cnt + 1,
+               ssyn->ssyn_sups = (Syntax **)ch_calloc( cnt + 1,
                        sizeof(Syntax) );
 
                for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ ) {