summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-02-09 22:50:08 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-02-09 22:50:08 +0000
commit83b35bbf808e57fcfb8de9c1f00ec1817254cd41 (patch)
tree2c375c683a5f3e0fa5268768d544d7e983aed76b /usr.sbin
parent93874bf08e2aaddd0dd69084d5f376045c2c5f6f (diff)
Use GEN_OTHERNAME instead of hardcoding 0
discussed with job
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/x509.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c
index 9f82344ee83..a143e209d6f 100644
--- a/usr.sbin/rpki-client/x509.c
+++ b/usr.sbin/rpki-client/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.62 2022/11/30 08:17:21 job Exp $ */
+/* $OpenBSD: x509.c,v 1.63 2023/02/09 22:50:07 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -595,7 +595,7 @@ x509_get_crl(X509 *x, const char *fn, char **crl)
"no distribution point name", fn);
goto out;
}
- if (dp->distpoint->type != 0) {
+ if (dp->distpoint->type != GEN_OTHERNAME) {
warnx("%s: RFC 6487 section 4.8.6: CRL: "
"expected GEN_OTHERNAME, have %d", fn, dp->distpoint->type);
goto out;