policer: fix policer_input coredump 23/42023/2
authorfenglei <[email protected]>
Sat, 14 Dec 2024 03:12:27 +0000 (11:12 +0800)
committerBeno�t Ganne <[email protected]>
Mon, 16 Dec 2024 10:45:07 +0000 (10:45 +0000)
commitd1177514c4085f7fcdf09ddfcffa5a5d9a2774a8
treede5d5a5d29444848f37faae82213a3b353c762d0
parent0ad98a8c9d36fe2363e9bb6a23a500c4097b25fc
policer: fix policer_input coredump

Type: fix

policer_input didn't check policer_index will lead to coredump
when refer to cm->counters[thread_index] variable, cm->counters[thread_index] is null.

Change-Id: I8c6ef6c4c2bc96f23ab806327cb6f179c958cee2
Signed-off-by: fenglei <[email protected]>
src/vnet/policer/policer.c