From 7e40f13125c01cbe9f9aba008e6f0abdafdd736c 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: Andreas Schneider --- src/wrapper.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wrapper.c b/src/wrapper.c index 836c7cdd..d317dc4c 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -150,15 +150,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)