From 28c2bc42cf189380fb9976d0763eeff9642297d0 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 4 Oct 2025 10:52:30 +0000 Subject: [PATCH] rpki-client: improve error message for duplicate TALs Using several TALs with the same SPKI doesn't really make sense and no longer works due to the way the CCR is constructed. Since the current error is very confusing, hint more clearly at the problem. Prompted by a report by Gregory Edigarov on misc. ok job --- usr.sbin/rpki-client/ccr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/ccr.c b/usr.sbin/rpki-client/ccr.c index 2377df2a97d..b33eb9e9d36 100644 --- a/usr.sbin/rpki-client/ccr.c +++ b/usr.sbin/rpki-client/ccr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccr.c,v 1.19 2025/09/22 07:37:28 job Exp $ */ +/* $OpenBSD: ccr.c,v 1.20 2025/10/04 10:52:30 tb Exp $ */ /* * Copyright (c) 2025 Job Snijders * @@ -669,7 +669,7 @@ ccr_insert_tas(struct ccr_tas_tree *tree, const struct cert *cert) errx(1, "hex_decode"); if (RB_INSERT(ccr_tas_tree, tree, cts) != NULL) - errx(1, "CCR TAS tree corrupted"); + errx(1, "multiple TALs with the same key are not supported"); } static inline int