mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-11-27 02:22:00 +08:00
Quick ITS#1415 fix.
This commit is contained in:
parent
773e283e09
commit
2ae1bdd4df
@ -265,7 +265,7 @@ static int slap_get_listener_addresses(
|
||||
for (n=2; (sai = sai->ai_next) != NULL; n++) {
|
||||
/* EMPTY */ ;
|
||||
}
|
||||
*sal = ch_malloc(n * sizeof(void *));
|
||||
*sal = ch_calloc(n, sizeof(void *));
|
||||
if (*sal == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user