From: tb Date: Sat, 25 Jun 2022 20:25:43 +0000 (+0000) Subject: Don't add unknown filetypes to the entity queue. Otherwise we bail out X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=940dae96baa0d298e49461d10886bc73216a11aa;p=openbsd Don't add unknown filetypes to the entity queue. Otherwise we bail out without good reason. Regression introduced in a recent refactoring found by job ok claudio job --- diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 1e17adf6ef8..9f4ae29805a 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.206 2022/06/01 14:48:53 tb Exp $ */ +/* $OpenBSD: main.c,v 1.207 2022/06/25 20:25:43 tb Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -338,6 +338,10 @@ queue_add_from_mft(const struct mft *mft, struct repo *rp) for (i = 0; i < mft->filesz; i++) { f = &mft->files[i]; + + if (f->type == RTYPE_INVALID) + continue; + if (mft->path != NULL) if ((npath = strdup(mft->path)) == NULL) err(1, NULL);