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:
458ab69
)
lb: fix coverity warning
54/28354/1
author
Dave Barach
<dave@barachs.net>
Tue, 10 Mar 2020 11:13:20 +0000
(07:13 -0400)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Thu, 13 Aug 2020 08:12:25 +0000
(08:12 +0000)
Type: fix
Ticket: VPP-1837
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I357eb72d478d8175ab9c7cf502d312ab3112213e
(cherry picked from commit
a53068905eb3f005a5a6d324c37f51056fb49b3e
)
src/plugins/lb/lb.c
patch
|
blob
|
history
diff --git
a/src/plugins/lb/lb.c
b/src/plugins/lb/lb.c
index
6c9ae60
..
a8ad254
100644
(file)
--- a/
src/plugins/lb/lb.c
+++ b/
src/plugins/lb/lb.c
@@
-904,7
+904,7
@@
static void lb_vip_add_adjacency(lb_main_t *lbm, lb_vip_t *vip,
vip->protocol, vip->port, &vip_idx))
{
lb_vip_t *exists_vip = lb_vip_get_by_index(vip_idx);
- *vip_prefix_index = exists_vip
->vip_prefix_index
;
+ *vip_prefix_index = exists_vip
? exists_vip->vip_prefix_index : ~0
;
return;
}