From b4ccbc2722fdcde946383342fee7d332ec3fcd11 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 7 Dec 2001 17:25:34 +0000 Subject: [PATCH] ITS#1413 suggested fix (I think I fixed this by other means, but this does no harm) --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index c13b4ae876..3e71735c11 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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; } -- 2.39.5