From: tb Date: Mon, 13 Feb 2023 09:17:50 +0000 (+0000) Subject: dsa/dsa_sign.c: unindent by inverting logic for DSA_SIG_free(NULL) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8a86294087d8cf0b8bce4f77a5046cb275c10c85;p=openbsd dsa/dsa_sign.c: unindent by inverting logic for DSA_SIG_free(NULL) --- 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