]> git.sur5r.net Git - openldap/commitdiff
ITS#1413 suggested fix
authorKurt Zeilenga <kurt@openldap.org>
Fri, 7 Dec 2001 17:25:34 +0000 (17:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 7 Dec 2001 17:25:34 +0000 (17:25 +0000)
(I think I fixed this by other means, but this does no harm)

servers/slapd/daemon.c

index c13b4ae87602378bf9a2577db8cb873b35d0d10c..3e71735c11eae539dda2c9a2db78983e7d172298 100644 (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;
                }