This fixes incorrectly reversed assignment of "friend" value in convert_node_to_storage() --- mesh/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/node.c b/mesh/node.c index e7016ce75..157991dad 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1297,7 +1297,7 @@ static void convert_node_to_storage(struct mesh_node *node, memcpy(db_node->uuid, node->dev_uuid, 16); - node->friend = db_node->modes.friend; + db_node->modes.friend = node->friend; db_node->modes.relay.state = node->relay.mode; db_node->modes.relay.cnt = node->relay.cnt; db_node->modes.relay.interval = node->relay.interval; -- 2.17.2