summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2025-01-11 03:00:04 +0000
committertb <>2025-01-11 03:00:04 +0000
commit8b8ce4611c101986c51d6e37d3113e60d5e1dd58 (patch)
treeb314c51bb52b39f7e247aae24510513813e9042c /src/lib
parent2702af94054a6af9c4e69cacc24050275bd5828c (diff)
downloadopenbsd-8b8ce4611c101986c51d6e37d3113e60d5e1dd58.tar.gz
openbsd-8b8ce4611c101986c51d6e37d3113e60d5e1dd58.tar.bz2
openbsd-8b8ce4611c101986c51d6e37d3113e60d5e1dd58.zip
Remove seven pairs of unnecessary parentheses
ok millert operator(7)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index 75bae5214a..87771ab090 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_x509.c,v 1.46 2024/08/28 06:17:06 tb Exp $ */ 1/* $OpenBSD: t_x509.c,v 1.47 2025/01/11 03:00:04 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 *
@@ -508,10 +508,10 @@ X509_NAME_print(BIO *bp, const X509_NAME *name, int obase)
508 508
509 c = s; 509 c = s;
510 for (;;) { 510 for (;;) {
511 if (((*s == '/') && 511 if ((s[0] == '/' &&
512 ((s[1] >= 'A') && (s[1] <= 'Z') && 512 (s[1] >= 'A' && s[1] <= 'Z' &&
513 ((s[2] == '=') || ((s[2] >= 'A') && (s[2] <= 'Z') && 513 (s[2] == '=' || (s[2] >= 'A' && s[2] <= 'Z' &&
514 (s[3] == '='))))) || (*s == '\0')) { 514 s[3] == '=')))) || s[0] == '\0') {
515 i = s - c; 515 i = s - c;
516 if (BIO_write(bp, c, i) != i) 516 if (BIO_write(bp, c, i) != i)
517 goto err; 517 goto err;