summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-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;
}
}