policer: fix coverity warning/NULL dereference 55/34255/2
authorKlement Sekera <ksekera@cisco.com>
Wed, 27 Oct 2021 08:56:38 +0000 (10:56 +0200)
committerDamjan Marion <dmarion@me.com>
Fri, 29 Oct 2021 16:20:52 +0000 (16:20 +0000)
commitba87563bee400f8ce6d99842a6e455c898cf2c1d
treee0651083706b8809ea694f9e75033cae7440efaa
parentb225b0a2af66b0a3a007d50877638f7489acbaf3
policer: fix coverity warning/NULL dereference

Add a NULL check in case of hash lookup failure to make coverity happy.

Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I3cfa5960458d3618f1277ba442b4ca5ca15064ea
src/vnet/policer/policer.c