]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Fix #12: this isn't a critical error (isn't dev's fault)
authorpcarana <pc.moreno2099@gmail.com>
Wed, 17 Jul 2019 18:16:29 +0000 (13:16 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Wed, 17 Jul 2019 18:16:29 +0000 (13:16 -0500)
src/object/roa.c

index 8db61b67d98878b08d3626753a25f67c687daed7..541c39878941bfbcc6bbb62a43cbf90450d48ef9 100644 (file)
@@ -185,8 +185,10 @@ __handle_roa(struct RouteOriginAttestation *roa, struct resources *parent)
 
        /* rfc6482#section-3.3 */
 
-       if (roa->ipAddrBlocks.list.array == NULL)
-               pr_crit("ipAddrBlocks array is NULL.");
+       if (roa->ipAddrBlocks.list.array == NULL) {
+               error = pr_err("ipAddrBlocks array is NULL.");
+               goto end_error;
+       }
 
        pr_debug_add("ipAddrBlocks {");
        for (b = 0; b < roa->ipAddrBlocks.list.count; b++) {