diff options
author | tb <> | 2021-11-05 17:09:36 +0000 |
---|---|---|
committer | tb <> | 2021-11-05 17:09:36 +0000 |
commit | 262944deecac641df0dca52b43336752ae3d1041 (patch) | |
tree | 885ffe3ea6fbe6d101eacabd6ffb77ffe1c8c19a /src/lib/libcrypto/x509/x509_lu.c | |
parent | 7f11ef3d087b85d9ef80b28d47e8ce3d7382cacf (diff) | |
download | openbsd-262944deecac641df0dca52b43336752ae3d1041.tar.gz openbsd-262944deecac641df0dca52b43336752ae3d1041.tar.bz2 openbsd-262944deecac641df0dca52b43336752ae3d1041.zip |
Garbage collect the unused skip member of X509_LOOKUP and
the unused cache member of X509_STORE.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lu.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_lu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c index 3fa572c7ef..69e11f35cb 100644 --- a/src/lib/libcrypto/x509/x509_lu.c +++ b/src/lib/libcrypto/x509/x509_lu.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_lu.c,v 1.42 2021/11/05 17:08:12 tb Exp $ */ | 1 | /* $OpenBSD: x509_lu.c,v 1.43 2021/11/05 17:09:36 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 | * |
@@ -134,8 +134,6 @@ X509_LOOKUP_by_subject(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type, X509_NAME *name, | |||
134 | { | 134 | { |
135 | if (ctx->method == NULL || ctx->method->get_by_subject == NULL) | 135 | if (ctx->method == NULL || ctx->method->get_by_subject == NULL) |
136 | return 0; | 136 | return 0; |
137 | if (ctx->skip) | ||
138 | return 0; | ||
139 | return ctx->method->get_by_subject(ctx, type, name, ret); | 137 | return ctx->method->get_by_subject(ctx, type, name, ret); |
140 | } | 138 | } |
141 | 139 | ||