summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lb/lb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/lb.c b/src/plugins/lb/lb.c
index 2fc38e219a1..ab5e808ddab 100644
--- a/src/plugins/lb/lb.c
+++ b/src/plugins/lb/lb.c
@@ -907,7 +907,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;
}