From: pcarana Date: Fri, 26 Jun 2020 23:09:32 +0000 (-0500) Subject: Fix bug: didn't searched local files when an RRDP URI failed previously X-Git-Tag: v1.3.0~3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=cae2f9e61df3f5b384d5d9a375b385ddf081b38e;p=thirdparty%2FFORT-validator.git 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. --- 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; }