From de9327fe9f16770a5d01eaa50b649b025e364af4 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 24 Jun 2023 04:15:14 +0000 Subject: [PATCH] Remove a pair of parens and make one check more consistent with the others --- usr.sbin/rpki-client/cert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rpki-client/cert.c b/usr.sbin/rpki-client/cert.c index e9ca4840ccb..508e48a3e82 100644 --- a/usr.sbin/rpki-client/cert.c +++ b/usr.sbin/rpki-client/cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cert.c,v 1.112 2023/06/23 20:05:30 tb Exp $ */ +/* $OpenBSD: cert.c,v 1.113 2023/06/24 04:15:14 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Job Snijders @@ -738,9 +738,9 @@ cert_parse_pre(const char *fn, const unsigned char *der, size_t len) obj = X509_EXTENSION_get_object(ext); assert(obj != NULL); - switch ((nid = OBJ_obj2nid(obj))) { + switch (nid = OBJ_obj2nid(obj)) { case NID_sbgp_ipAddrBlock: - if (ip++ >= 1) + if (ip++ > 0) goto dup; if (!sbgp_ipaddrblk(&p, ext)) goto out; -- 2.20.1