From 201345d4cb3b3bc5becda9effb8a5e068718923a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 21 Dec 2025 10:02:05 +0000 Subject: X509_NAME_ENTRY_set_data: remove redundant parentheses --- src/lib/libcrypto/x509/x509name.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/x509/x509name.c b/src/lib/libcrypto/x509/x509name.c index d4f133bcc9..e60d8b7a3b 100644 --- a/src/lib/libcrypto/x509/x509name.c +++ b/src/lib/libcrypto/x509/x509name.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509name.c,v 1.38 2025/12/21 09:44:45 tb Exp $ */ +/* $OpenBSD: x509name.c,v 1.39 2025/12/21 10:02:05 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -404,19 +404,19 @@ int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len) { - if ((ne == NULL) || ((bytes == NULL) && (len != 0))) - return (0); - if ((type > 0) && (type & MBSTRING_FLAG)) + if (ne == NULL || (bytes == NULL && len != 0)) + return 0; + if (type > 0 && (type & MBSTRING_FLAG) != 0) return ASN1_STRING_set_by_NID(&ne->value, bytes, len, type, OBJ_obj2nid(ne->object)) ? 1 : 0; if (len < 0) len = strlen((const char *)bytes); if (!ASN1_STRING_set(ne->value, bytes, len)) - return (0); + return 0; if (type != V_ASN1_UNDEF) ne->value->type = type; - return (1); + return 1; } LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); -- cgit v1.2.3-55-g6feb