Skip to content
Snippets Groups Projects
Commit 2ae1bdd4 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Quick ITS#1415 fix.

parent 773e283e
No related branches found
No related tags found
No related merge requests found
...@@ -265,7 +265,7 @@ static int slap_get_listener_addresses( ...@@ -265,7 +265,7 @@ static int slap_get_listener_addresses(
for (n=2; (sai = sai->ai_next) != NULL; n++) { for (n=2; (sai = sai->ai_next) != NULL; n++) {
/* EMPTY */ ; /* EMPTY */ ;
} }
*sal = ch_malloc(n * sizeof(void *)); *sal = ch_calloc(n, sizeof(void *));
if (*sal == NULL) { if (*sal == NULL) {
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment