summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-06-25 20:25:44 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-06-25 20:25:44 +0000
commit51ffaca60f091de4835ea34dc56f3fe9e2246312 (patch)
tree2a2be7d60b4cad89d13ac365f5fd6dafad8a45e4 /usr.sbin
parent578e7f30cad60300eb18c0716d7cd1d315511888 (diff)
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/main.c6
1 files changed, 5 insertions, 1 deletions
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 <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -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);