ITS#1413 suggested fix

(I think I fixed this by other means, but this does no harm)
This commit is contained in:
Kurt Zeilenga 2001-12-07 17:25:34 +00:00
parent 505a8693e6
commit b4ccbc2722

View File

@ -385,7 +385,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;
}