summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-05-23 01:42:23 +0000
committertb <>2024-05-23 01:42:23 +0000
commit51a6786324826813c13ccf3914427aafd837845c (patch)
tree5e2275404d10bc6676bfefb9e78a3fcd65757953 /src
parent74921fc8659273d6a4f716256416a394eb1f7c11 (diff)
downloadopenbsd-51a6786324826813c13ccf3914427aafd837845c.tar.gz
openbsd-51a6786324826813c13ccf3914427aafd837845c.tar.bz2
openbsd-51a6786324826813c13ccf3914427aafd837845c.zip
x509_v3.c: remove a pointless local variable
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_v3.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c
index 4321c09c19..3666d24c07 100644
--- a/src/lib/libcrypto/x509/x509_v3.c
+++ b/src/lib/libcrypto/x509/x509_v3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_v3.c,v 1.23 2024/05/23 01:40:23 tb Exp $ */ 1/* $OpenBSD: x509_v3.c,v 1.24 2024/05/23 01:42:23 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 *
@@ -147,12 +147,10 @@ LCRYPTO_ALIAS(X509v3_get_ext);
147X509_EXTENSION * 147X509_EXTENSION *
148X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) 148X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc)
149{ 149{
150 X509_EXTENSION *ret;
151
152 if (x == NULL || sk_X509_EXTENSION_num(x) <= loc || loc < 0) 150 if (x == NULL || sk_X509_EXTENSION_num(x) <= loc || loc < 0)
153 return NULL; 151 return NULL;
154 ret = sk_X509_EXTENSION_delete(x, loc); 152
155 return ret; 153 return sk_X509_EXTENSION_delete(x, loc);
156} 154}
157LCRYPTO_ALIAS(X509v3_delete_ext); 155LCRYPTO_ALIAS(X509v3_delete_ext);
158 156