summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zebra_static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c
index 76ef0c636f..b323950064 100644
--- a/zebra/zebra_static.c
+++ b/zebra/zebra_static.c
@@ -401,7 +401,8 @@ static_add_route (afi_t afi, safi_t safi, u_char type, struct prefix *p,
&& (! ifindex || ifindex == si->ifindex))
{
if ((distance == si->distance) && (tag == si->tag) &&
- !memcmp (&si->snh_label, snh_label, sizeof (struct static_nh_label)))
+ !memcmp (&si->snh_label, snh_label, sizeof (struct static_nh_label)) &&
+ si->flags == flags)
{
route_unlock_node (rn);
return 0;