wrapper: Use calloc instead of zerostructp

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit c85268c38b)
This commit is contained in:
Jakub Jelen
2024-08-12 17:55:11 +02:00
parent 3264d3e83c
commit dfc3cb7112

View File

@@ -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;
}