From dfc3cb7112572936f9466061f905190be16ef3f9 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 12 Aug 2024 17:55:11 +0200 Subject: [PATCH] wrapper: Use calloc instead of zerostructp Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider (cherry picked from commit c85268c38bab55beda336807f3d7d9194b8bd914) --- src/wrapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wrapper.c b/src/wrapper.c index d9cf6db5..90add506 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -154,11 +154,10 @@ struct ssh_crypto_struct *crypto_new(void) { struct ssh_crypto_struct *crypto; - crypto = malloc(sizeof(struct ssh_crypto_struct)); + crypto = calloc(1, sizeof(struct ssh_crypto_struct)); if (crypto == NULL) { return NULL; } - ZERO_STRUCTP(crypto); return crypto; }