summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 808b98e419..05cf63e053 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -780,7 +780,7 @@ static bool link_state_hash_cmp(const void *p1, const void *p2)
if (!link_state1 && link_state2)
return false;
- if (link_state1 && !link_state2)
+ if (!link_state1 && link_state2)
return false;
if (!link_state1 && !link_state2)
return true;