summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-12-17 19:56:09 +0100
committerTom Gundersen <teg@jklm.no>2013-12-17 22:08:12 +0100
commitd638dee035bea5ce1082cce6448ad4d8f8cedf55 (patch)
tree4d1c65b1bc2bafafb3dbf3129bf137fde56fee73
parentef1ba6065c6ccea94d4ee867f36df7bbc53a5224 (diff)
networkd: bridge - fix state machine
We were entering BRIDGE_STATE_CREATED rather than BRIDGE_STATE_READY.
-rw-r--r--src/network/networkd-bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-bridge.c b/src/network/networkd-bridge.c
index ed0d692992..f110b8aa12 100644
--- a/src/network/networkd-bridge.c
+++ b/src/network/networkd-bridge.c
@@ -139,8 +139,8 @@ static int bridge_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda
if (bridge->link)
bridge_enter_ready(bridge);
-
- bridge->state = BRIDGE_STATE_CREATED;
+ else
+ bridge->state = BRIDGE_STATE_CREATED;
return 1;
}