]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix overlay index comparison
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 9 Feb 2017 08:09:54 +0000 (09:09 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 Feb 2017 12:59:00 +0000 (13:59 +0100)
To know if overlay index is the same between two route information,
then the two overlay index field is compared. If both fields are set to
null, then the comparison should be equal, then return true, which was
not done.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_attr.c

index 3a3cefda5952c6d2625bf21973a3be0a46b718ea..929a9fb4add04569711ddbc48409788c4a50ed5a 100644 (file)
@@ -429,7 +429,7 @@ overlay_index_same(const struct attr_extra *ae1, const struct attr_extra *ae2)
   if(!ae2 && ae1)
     return false;
   if(!ae1 && !ae2)
-    return false;
+    return true;
   return !memcmp(&(ae1->evpn_overlay), &(ae2->evpn_overlay), sizeof(struct overlay_index));
 }