dsa/dsa_sign.c: unindent by inverting logic for DSA_SIG_free(NULL)
authortb <tb@openbsd.org>
Mon, 13 Feb 2023 09:17:50 +0000 (09:17 +0000)
committertb <tb@openbsd.org>
Mon, 13 Feb 2023 09:17:50 +0000 (09:17 +0000)
lib/libcrypto/dsa/dsa_sign.c

index f941c32..1e0c327 100644 (file)
@@ -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