From c6749b327af28bfa1839c6e5bd46463bbe061875 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 9 Feb 2023 22:50:07 +0000 Subject: [PATCH] Use GEN_OTHERNAME instead of hardcoding 0 discussed with job --- usr.sbin/rpki-client/x509.c | 4 ++-- 1 file 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 * Copyright (c) 2021 Claudio Jeker @@ -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; -- 2.20.1