aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads.c b/src/threads.c
index b85ac756..191b3b64 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -156,7 +156,7 @@ static int libcrypto_thread_init(void){
int i;
if(user_callbacks == &ssh_threads_noop)
return SSH_OK;
- libcrypto_mutexes=malloc(sizeof(void *) * n);
+ libcrypto_mutexes = calloc(n, sizeof(void *));
if (libcrypto_mutexes == NULL)
return SSH_ERROR;
for (i=0;i<n;++i){