From 8a86294087d8cf0b8bce4f77a5046cb275c10c85 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 13 Feb 2023 09:17:50 +0000 Subject: [PATCH] dsa/dsa_sign.c: unindent by inverting logic for DSA_SIG_free(NULL) --- lib/libcrypto/dsa/dsa_sign.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/dsa/dsa_sign.c b/lib/libcrypto/dsa/dsa_sign.c index f941c32e573..1e0c327e3f0 100644 --- a/lib/libcrypto/dsa/dsa_sign.c +++ b/lib/libcrypto/dsa/dsa_sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_sign.c,v 1.24 2023/02/13 09:16:15 tb Exp $ */ +/* $OpenBSD: dsa_sign.c,v 1.25 2023/02/13 09:17:50 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -72,11 +72,12 @@ DSA_SIG_new(void) void DSA_SIG_free(DSA_SIG *sig) { - if (sig != NULL) { - BN_free(sig->r); - BN_free(sig->s); - free(sig); - } + if (sig == NULL) + return; + + BN_free(sig->r); + BN_free(sig->s); + free(sig); } int -- 2.20.1