diff options
author | Matthew Smith <mgsmith@netgate.com> | 2019-10-02 16:34:27 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-10-03 12:41:06 +0000 |
commit | 4938938621a3b2aad48adc5894823472e88f183e (patch) | |
tree | ed2797789aea8536f77ce9e77aa7f5a2a8976981 /src/vnet | |
parent | 25fe57821b1d6549ac58961e942d4f74494d5555 (diff) |
ethernet: fix dmac filter coverity warning
Static analysis says that a possibly null pointer is dereferenced.
Check it first.
Type: fix
Change-Id: I3d1a1548162d1dfc26f19fbcf159f0f1f91eb7c4
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/vnet')
-rwxr-xr-x | src/vnet/ethernet/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ethernet/node.c b/src/vnet/ethernet/node.c index 488218e1a87..9c9143dd4ba 100755 --- a/src/vnet/ethernet/node.c +++ b/src/vnet/ethernet/node.c @@ -859,7 +859,7 @@ eth_input_process_frame (vlib_main_t * vm, vlib_node_runtime_t * node, if (dmac_check) { - if (vec_len (ei->secondary_addrs)) + if (ei && vec_len (ei->secondary_addrs)) eth_input_process_frame_dmac_check (hi, dmacs, dmacs_bad, n_packets, ei, 1 /* have_sec_dmac */ ); else |