Skip to content

Commit 339062f

Browse files
committed
Update LiveUpdate storage header checksum on consuming partition
1 parent 78c6dd2 commit 339062f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/LiveUpdate/partition.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ void storage_header::zero_partition(int p)
7171
auto& part = ptable.at(p);
7272
memset(&this->vla[part.offset], 0, part.length);
7373
memset(&part, 0, sizeof(partition_header));
74+
// NOTE: generate **NEW** checksum for header
75+
this->crc = generate_checksum();
7476
}

0 commit comments

Comments
 (0)