From 11c2a4dd08d7089739b0d869b09d3c23e1089db0 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 15 Jun 2023 13:48:15 +0000 Subject: Make another NULL check explicit and put a brace on the proper line --- src/lib/libcrypto/asn1/asn1_item.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/asn1/asn1_item.c b/src/lib/libcrypto/asn1/asn1_item.c index fcf45a0fee..aeba46656a 100644 --- a/src/lib/libcrypto/asn1/asn1_item.c +++ b/src/lib/libcrypto/asn1/asn1_item.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1_item.c,v 1.12 2023/06/15 13:44:38 tb Exp $ */ +/* $OpenBSD: asn1_item.c,v 1.13 2023/06/15 13:48:15 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -346,13 +346,12 @@ ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, int in_len = 0; int ret = -1; - if (!pkey) { + if (pkey == NULL) { ASN1error(ERR_R_PASSED_NULL_PARAMETER); return -1; } - if (signature->type == V_ASN1_BIT_STRING && signature->flags & 0x7) - { + if (signature->type == V_ASN1_BIT_STRING && signature->flags & 0x7) { ASN1error(ASN1_R_INVALID_BIT_STRING_BITS_LEFT); return -1; } -- cgit v1.2.3-55-g6feb