summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-06-15 13:48:15 +0000
committertb <>2023-06-15 13:48:15 +0000
commit11c2a4dd08d7089739b0d869b09d3c23e1089db0 (patch)
tree9d78718c406dac7ace3c1d5b7f295a688d610dde /src
parent9df878af0c73c86a47253280c64c30e5087aa3ec (diff)
downloadopenbsd-11c2a4dd08d7089739b0d869b09d3c23e1089db0.tar.gz
openbsd-11c2a4dd08d7089739b0d869b09d3c23e1089db0.tar.bz2
openbsd-11c2a4dd08d7089739b0d869b09d3c23e1089db0.zip
Make another NULL check explicit and put a brace on the proper line
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/asn1_item.c7
1 files changed, 3 insertions, 4 deletions
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 @@
1/* $OpenBSD: asn1_item.c,v 1.12 2023/06/15 13:44:38 tb Exp $ */ 1/* $OpenBSD: asn1_item.c,v 1.13 2023/06/15 13:48:15 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -346,13 +346,12 @@ ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
346 int in_len = 0; 346 int in_len = 0;
347 int ret = -1; 347 int ret = -1;
348 348
349 if (!pkey) { 349 if (pkey == NULL) {
350 ASN1error(ERR_R_PASSED_NULL_PARAMETER); 350 ASN1error(ERR_R_PASSED_NULL_PARAMETER);
351 return -1; 351 return -1;
352 } 352 }
353 353
354 if (signature->type == V_ASN1_BIT_STRING && signature->flags & 0x7) 354 if (signature->type == V_ASN1_BIT_STRING && signature->flags & 0x7) {
355 {
356 ASN1error(ASN1_R_INVALID_BIT_STRING_BITS_LEFT); 355 ASN1error(ASN1_R_INVALID_BIT_STRING_BITS_LEFT);
357 return -1; 356 return -1;
358 } 357 }