From 1529bbd7ac0dd28f2e7cebb558e3f206fc495a15 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 10 Mar 2023 16:22:09 +0100 Subject: [PATCH] wrapper: Reformat crypto_new Signed-off-by: Jakub Jelen Reviewed-by: Norbert Pocs Reviewed-by: Andrew Bartlett --- src/wrapper.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wrapper.c b/src/wrapper.c index 05c820da..bbc75744 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -147,15 +147,16 @@ static void cipher_free(struct ssh_cipher_struct *cipher) { SAFE_FREE(cipher); } -struct ssh_crypto_struct *crypto_new(void) { - struct ssh_crypto_struct *crypto; +struct ssh_crypto_struct *crypto_new(void) +{ + struct ssh_crypto_struct *crypto; - crypto = malloc(sizeof(struct ssh_crypto_struct)); - if (crypto == NULL) { - return NULL; - } - ZERO_STRUCTP(crypto); - return crypto; + crypto = malloc(sizeof(struct ssh_crypto_struct)); + if (crypto == NULL) { + return NULL; + } + ZERO_STRUCTP(crypto); + return crypto; } void crypto_free(struct ssh_crypto_struct *crypto)