summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2019-11-27 03:39:16 +0000
committerbenno <benno@openbsd.org>2019-11-27 03:39:16 +0000
commitdcf5ab21e7e8702bb0c4d902fa7e364a1b13c38d (patch)
treed88962205db05e722bf757c8b9a3ab6951cba1d8
parentMake channel_id u_int32_t and remove unnecessary check and cast that were (diff)
downloadwireguard-openbsd-dcf5ab21e7e8702bb0c4d902fa7e364a1b13c38d.tar.xz
wireguard-openbsd-dcf5ab21e7e8702bb0c4d902fa7e364a1b13c38d.zip
rename a variable to show it's a CRL. ok claudio@
-rw-r--r--usr.sbin/rpki-client/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 3e0d97057e5..cbc6039cf09 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.23 2019/11/18 08:40:35 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.24 2019/11/27 03:39:16 benno Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -990,16 +990,16 @@ static void
proc_parser_crl(struct entity *entp, int norev, X509_STORE *store,
X509_STORE_CTX *ctx, const struct auth *auths, size_t authsz)
{
- X509_CRL *x509;
+ X509_CRL *x509_crl;
const unsigned char *dgst;
if (norev)
return;
dgst = entp->has_dgst ? entp->dgst : NULL;
- if ((x509 = crl_parse(entp->uri, dgst)) != NULL) {
- X509_STORE_add_crl(store, x509);
- X509_CRL_free(x509);
+ if ((x509_crl = crl_parse(entp->uri, dgst)) != NULL) {
+ X509_STORE_add_crl(store, x509_crl);
+ X509_CRL_free(x509_crl);
}
}