Quick ITS#1415 fix.

This commit is contained in:
Kurt Zeilenga 2001-12-07 17:24:08 +00:00
parent 773e283e09
commit 2ae1bdd4df

View File

@ -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;
}