]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Fix bug: didn't searched local files when an RRDP URI failed previously
authorpcarana <pc.moreno2099@gmail.com>
Fri, 26 Jun 2020 23:09:32 +0000 (18:09 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 26 Jun 2020 23:09:32 +0000 (18:09 -0500)
+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

index 936fb93523271aee2d52fab6191d222e0f9b7c56..5c297cd5e2c441c5fa35900d15bf455a473f6b2a 100644 (file)
@@ -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;
        }