fix: zero entire public key array instead of only first byte (#9619)

This commit is contained in:
Wessel
2026-02-12 15:33:57 +01:00
committed by GitHub
parent 38c7ad0ed6
commit 1a7f560372
3 changed files with 3 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
// Strip the public key if the user is licensed
if (u.is_licensed && u.public_key.size > 0) {
u.public_key.bytes[0] = 0;
memset(u.public_key.bytes, 0, sizeof(u.public_key.bytes));
u.public_key.size = 0;
}