From 309d51a3e8c01aa3ffb2a57280cbf6819c990776 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Tue, 9 Jun 2026 21:00:40 -0500 Subject: [PATCH] fix(NodeInfoModule): update user handling in allocReply to prevent global state clobbering --- src/modules/NodeInfoModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/NodeInfoModule.cpp b/src/modules/NodeInfoModule.cpp index 4de479241..a891813cb 100644 --- a/src/modules/NodeInfoModule.cpp +++ b/src/modules/NodeInfoModule.cpp @@ -158,8 +158,8 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply() ignoreRequest = true; return NULL; } else { - ignoreRequest = false; // Don't ignore requests anymore - meshtastic_User &u = owner; + ignoreRequest = false; // Don't ignore requests anymore + meshtastic_User u = owner; // deliberate copy: the licensed strip below must not clobber the global owner state // Strip the public key if the user is licensed if (u.is_licensed && u.public_key.size > 0) {