From 940dae96baa0d298e49461d10886bc73216a11aa Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 25 Jun 2022 20:25:43 +0000 Subject: [PATCH] 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 --- usr.sbin/rpki-client/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.20.1