Diff between ab6ce0c8f3e066299bd22bea6d03625edb1fbbe8 and f6f82b39d3287ae5eb4ee3ac323373265c72847f
Changed Files
| File | Additions | Deletions | Status |
| mesh/cfgmod-server.c | +1 | -1 | modified |
Full Patch
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index e5d5a86..f9f80af 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -203,7 +203,7 @@ static bool save_cfg_sub(struct mesh_node *node, uint16_t ele_addr,
id = (vendor) ? id : MODEL_ID(id);
- if (virt)
+ if (virt && label)
memcpy(db_sub.addr.label, label, 16);
if (opcode == OP_CONFIG_MODEL_SUB_VIRT_DELETE ||