From c298dae25906c33d61f86235c39380212f48a138 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 9 Feb 2017 09:09:54 +0100 Subject: [PATCH] bgpd: fix overlay index comparison 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 --- bgpd/bgp_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 3a3cefda59..929a9fb4ad 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -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)); }