Diff between ecf001daa1658b78aedf0a39744d1e7bcca06bd5 and 1e5e98c3b3080ce724f09ab1ab76827e6bcfd51d

Changed Files

File Additions Deletions Status
mesh/node.c +1 -1 modified

Full Patch

diff --git a/mesh/node.c b/mesh/node.c
index 820aeb4..f31b929 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;