From: pcarana Date: Wed, 17 Jul 2019 18:16:29 +0000 (-0500) Subject: Fix #12: this isn't a critical error (isn't dev's fault) X-Git-Tag: v1.0.0^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1dcdb520daeabdf8f69b2203aa6399d198fc96e6;p=thirdparty%2FFORT-validator.git Fix #12: this isn't a critical error (isn't dev's fault) --- diff --git a/src/object/roa.c b/src/object/roa.c index 8db61b67..541c3987 100644 --- a/src/object/roa.c +++ b/src/object/roa.c @@ -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++) {