diff options
author | Chris Luke <chrisy@flirble.org> | 2018-03-29 12:56:58 -0700 |
---|---|---|
committer | Chris Luke <chrisy@flirble.org> | 2018-03-29 15:23:56 -0700 |
commit | 30684ac044bbb8e11ef100a24c01eb37ba7a8876 (patch) | |
tree | ac5d526793fbafed606355c22d8e627e66d95786 /src/vnet/ip/ip_api.c | |
parent | f3a3bad8006afb0b379761dfe4d5d25de07b32cc (diff) |
Coverity fixes (VPP-1204)
Minor bug fixes
CID 183000: double close
CID 180996: dead code
CID 180995: NULL deref
CID 181957: NULL deref
CID 182676: NULL deref
CID 182675: NULL deref
Change-Id: Id35e391c95fafb8cd771984ee8a1a6e597056d37
Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'src/vnet/ip/ip_api.c')
-rw-r--r-- | src/vnet/ip/ip_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index a8dbb3ae36c..0b0a7a949e0 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -2253,6 +2253,7 @@ wc_arp_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) ({ vl_api_registration_t *vl_reg; vl_reg = vl_api_client_index_to_registration (reg->client_index); + ASSERT (vl_reg != NULL); if (reg && vl_api_can_send_msg (vl_reg)) { vl_api_ip4_arp_event_t * event = vl_msg_api_alloc (sizeof *event); |