From: tb Date: Thu, 23 May 2024 01:57:32 +0000 (+0000) Subject: x509_v3.c: remove an unnecessary else X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0943750f77e4b7ed5a17741a5829b293d140041f;p=openbsd x509_v3.c: remove an unnecessary else --- diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c index 772f9ad5967..cc94292aa3e 100644 --- a/lib/libcrypto/x509/x509_v3.c +++ b/lib/libcrypto/x509/x509_v3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_v3.c,v 1.28 2024/05/23 01:56:14 tb Exp $ */ +/* $OpenBSD: x509_v3.c,v 1.29 2024/05/23 01:57:32 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -140,8 +140,8 @@ X509v3_get_ext(const STACK_OF(X509_EXTENSION) *sk, int loc) { if (sk == NULL || sk_X509_EXTENSION_num(sk) <= loc || loc < 0) return NULL; - else - return sk_X509_EXTENSION_value(sk, loc); + + return sk_X509_EXTENSION_value(sk, loc); } LCRYPTO_ALIAS(X509v3_get_ext);