From cae2f9e61df3f5b384d5d9a375b385ddf081b38e Mon Sep 17 00:00:00 2001 From: pcarana Date: Fri, 26 Jun 2020 18:09:32 -0500 Subject: [PATCH] Fix bug: didn't searched local files when an RRDP URI failed previously +Whenever an RRDP repository can't be fetched, an attempt to work with local files must be done. If RSYNC was disabled and there was an error fetching the RRDP repository, the next time that repository was found on a certificate, it was being rejected; the right thing to do, is to consider such scenario and keep working locally. --- src/object/certificate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/object/certificate.c b/src/object/certificate.c index 936fb935..5c297cd5 100644 --- a/src/object/certificate.c +++ b/src/object/certificate.c @@ -2010,6 +2010,12 @@ verify_mft: /* Log that we'll try to work with a local copy */ pr_val_warn("Trying to work with the local cache files."); break; + case -EPERM: + /* + * Specific RRPD error: the URI error'd on the first try, so + * we'll keep trying with the local files + */ + break; default: return error; } -- 2.47.2