From 9f7d2d63f8c3f980eae85656152e3d8c8fc3e4da Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 9 Mar 2022 08:49:56 -0800 Subject: [PATCH] Fix for #3748 --- meshagent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshagent.js b/meshagent.js index 2836e494..7207d8d4 100644 --- a/meshagent.js +++ b/meshagent.js @@ -2095,7 +2095,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { if ((agentExeInfo.hash == agentHash) || (agentHash == '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')) return 0; // If this is a macOS x86 or ARM agent type and it matched the universal binary, no update required. if ((agentExeInfo.id == 16) || (agentExeInfo.id == 29)) { - if (domain.meshAgentBinaries[10005]) { + if (domain.meshAgentBinaries && domain.meshAgentBinaries[10005]) { if (domain.meshAgentBinaries[10005].hash == agentHash) return 0; } else { if (parent.parent.meshAgentBinaries[10005].hash == agentHash) return 0;