summaryrefslogtreecommitdiffstats
path: root/src/plugins/ping
diff options
context:
space:
mode:
authorVyshakh Krishnan <vyshakh@rtbrick.com>2022-02-17 10:02:25 +0530
committerNeale Ranns <neale@graphiant.com>2022-02-17 10:58:36 +0000
commite2b15863f9bcbdb7fddfd9eb62a13b24b8f5b23b (patch)
tree16b4b564d62edc383999399be20e4456a708fdfb /src/plugins/ping
parent6450a179f4b760561f533396818f4b765bf1a7b8 (diff)
ping: fix incorrect index while clearing ping
Type: fix Signed-off-by: Vyshakh Krishnan <vyshakh@rtbrick.com> Change-Id: I0b085fd2d3d9b8e08a16585c4964101b6461bf06
Diffstat (limited to 'src/plugins/ping')
-rw-r--r--src/plugins/ping/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ping/ping.c b/src/plugins/ping/ping.c
index 38cb5b82eb6..06cf7dde456 100644
--- a/src/plugins/ping/ping.c
+++ b/src/plugins/ping/ping.c
@@ -156,7 +156,7 @@ clear_cli_process_id_by_icmp_id_mt (vlib_main_t * vm, u16 icmp_id)
{
if (pr->icmp_id == icmp_id)
{
- vec_del1 (pm->active_ping_runs, pm->active_ping_runs - pr);
+ vec_del1 (pm->active_ping_runs, pr - pm->active_ping_runs);
break;
}
}