From: Kurt Zeilenga Date: Fri, 7 Dec 2001 17:25:34 +0000 (+0000) Subject: ITS#1413 suggested fix X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~721 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4ccbc2722fdcde946383342fee7d332ec3fcd11;p=openldap ITS#1413 suggested fix (I think I fixed this by other means, but this does no harm) --- 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; }