From: F. Aragon Date: Fri, 30 Nov 2018 17:09:05 +0000 (+0100) Subject: pbrd: return check (Coverity 1475199) X-Git-Tag: frr-7.1-dev~136^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=54317f2cf3f547c4482d44949fa6980830a3b83f;p=mirror%2Ffrr.git pbrd: return check (Coverity 1475199) Signed-off-by: F. Aragon --- diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index 9db3edacb9..7974bbfb4e 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -361,7 +361,10 @@ static int pbr_zebra_nexthop_update(int command, struct zclient *zclient, char buf[PREFIX2STR_BUFFER]; uint32_t i; - zapi_nexthop_update_decode(zclient->ibuf, &nhr); + if (!zapi_nexthop_update_decode(zclient->ibuf, &nhr)) { + zlog_warn("Failure to decode Nexthop update message"); + return 0; + } if (DEBUG_MODE_CHECK(&pbr_dbg_zebra, DEBUG_MODE_ALL)) {