Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b3c863e
)
lb: fix using vip after free
65/40465/2
author
Georgy Borodin
<bor1-go@yandex-team.ru>
Wed, 25 Oct 2023 23:44:12 +0000
(
01:44
+0200)
committer
Dave Wallace
<dwallacelf@gmail.com>
Tue, 2 Apr 2024 02:39:10 +0000
(
02:39
+0000)
fix use of vip after it was deleted
Type: fix
Fixes:
041eacc81656d2ed5bc01b96b15a7d03a1700f13
Change-Id: I5723485c5da7507fbc6c86ff6eb9f77127439f67
Signed-off-by: Georgy Borodin <bor1-go@yandex-team.ru>
src/plugins/lb/lb.c
patch
|
blob
|
history
diff --git
a/src/plugins/lb/lb.c
b/src/plugins/lb/lb.c
index
f8d5fe8
..
7ae1884
100644
(file)
--- a/
src/plugins/lb/lb.c
+++ b/
src/plugins/lb/lb.c
@@
-373,9
+373,9
@@
void lb_garbage_collection()
}
vec_foreach(i, to_be_removed_vips) {
- vip = &lbm->vips[*i];
-
pool_put(lbm->vips, vip
);
-
pool_free(vip->as_indexes
);
+
vip = &lbm->vips[*i];
+
pool_free (vip->as_indexes
);
+
pool_put (lbm->vips, vip
);
}
vec_free(to_be_removed_vips);