From 9f02e61912d67262e0ea71cfad4d027f1227febc Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 15 Jun 2023 13:48:15 +0000 Subject: [PATCH] Make another NULL check explicit and put a brace on the proper line --- lib/libcrypto/asn1/asn1_item.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/asn1/asn1_item.c b/lib/libcrypto/asn1/asn1_item.c index fcf45a0fee3..aeba46656af 100644 --- a/lib/libcrypto/asn1/asn1_item.c +++ b/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; } -- 2.20.1