From 55f8993cd0b2c4c476a58ec72ab3f8b05d348803 Mon Sep 17 00:00:00 2001 From: Daniele Venturino Date: Fri, 14 Nov 2014 14:07:50 -0800 Subject: [PATCH] rstp-state-machines: Fix updt_roles_tree(). If the DesignatedBridgeID Bridge Address component is equal to that component of the Bridge's own bridge priority vector skip to the next port. Signed-off-by: Daniele Venturino Acked-by: Jarno Rajahalme --- lib/rstp-state-machines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index e3ddba3d86d..a669cad5e90 100644 --- a/lib/rstp-state-machines.c +++ b/lib/rstp-state-machines.c @@ -312,7 +312,7 @@ updt_roles_tree__(struct rstp *r) if ((candidate_vector.designated_bridge_id & 0xffffffffffffULL) == (r->bridge_priority.designated_bridge_id & 0xffffffffffffULL)) { - break; + continue; } if (compare_rstp_priority_vectors(&candidate_vector, &best_vector) == SUPERIOR) {