Fix comparaison of link state attributes pointers in
link_state_hash_cmp().
> CID
1568379 (#1 of 1): Logically dead code (DEADCODE)
> dead_error_line: Execution cannot reach this statement: return false;.
Fixes: 8b531b1107 ("bgpd: store and send bgp link-state attributes")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
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;