mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-24 15:52:54 -05:00
fix potential NULL dereferencing (detected by Coverity)
This commit is contained in:
parent
848ea293a3
commit
35282bc713
1 changed files with 1 additions and 1 deletions
|
|
@ -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++ ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue