mirror of
https://github.com/meshtastic/firmware.git
synced 2026-06-03 05:51:36 -04:00
fix: zero entire public key array instead of only first byte (#9619)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user