From a41f9dc0366bdfc13b01b20b934daffeed12439b Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Tue, 14 Sep 2004 13:18:16 +0000
Subject: [PATCH] calloc memory rather than mallocing it - can't hurt too much,
 and is probably a bit safer

--HG--
extra : convert_revision : bbd2edbb1410ea8fd7bee089f60154f76d2a0ab7
---
 dbutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dbutil.c b/dbutil.c
index 4036841a..cc7fcf83 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -544,7 +544,7 @@ void * m_malloc(size_t size) {
 	if (size == 0) {
 		dropbear_exit("m_malloc failed");
 	}
-	ret = malloc(size);
+	ret = calloc(1, size);
 	if (ret == NULL) {
 		dropbear_exit("m_malloc failed");
 	}
-- 
GitLab