From: tb Date: Sun, 9 May 2021 11:18:57 +0000 (+0000) Subject: Remove unnecessary NULL check that breaks the build with OpenSSL 1.1. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=61082a5180e839625041191acead0e76470251c4;p=openbsd Remove unnecessary NULL check that breaks the build with OpenSSL 1.1. ok job --- diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index 1fc86c26ab9..6f05644e66a 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.8 2021/05/06 17:03:57 job Exp $ */ +/* $OpenBSD: parser.c,v 1.9 2021/05/09 11:18:57 tb Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -95,10 +95,7 @@ proc_parser_roa(struct entity *entp, */ for (i = 0; i < sk_X509_CRL_num(crls); i++) { X509_CRL *ci = sk_X509_CRL_value(crls, i); - if (ci->crl == NULL) { - err(1, "sk_X509_value failed"); - goto out; - } + at = X509_CRL_get0_nextUpdate(ci); if (at == NULL) { err(1, "X509_CRL_get0_nextUpdate failed"); @@ -123,10 +120,7 @@ proc_parser_roa(struct entity *entp, */ for (i = 0; i < sk_X509_num(chain); i++) { X509 *xi = sk_X509_value(chain, i); - if (xi->cert_info == NULL) { - err(1, "sk_X509_value failed"); - goto out; - } + at = X509_get0_notAfter(xi); if (at == NULL) { err(1, "X509_get0_notafter failed");