diff options
| author | F. Aragon <paco@voltanet.io> | 2018-11-30 18:09:05 +0100 |
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-12-03 16:47:59 +0100 |
| commit | 54317f2cf3f547c4482d44949fa6980830a3b83f (patch) | |
| tree | bbe084575d9e2af8c8d1259640a767c01bd7aef4 | |
| parent | b3beaea00de8a8c1dda61a8dc127f78fdc032ec8 (diff) | |
pbrd: return check (Coverity 1475199)
Signed-off-by: F. Aragon <paco@voltanet.io>
| -rw-r--r-- | pbrd/pbr_zebra.c | 5 |
1 files changed, 4 insertions, 1 deletions
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)) { |
