From 3f03f4c9725c4bdef9f22019804d2022b7b6919d Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Tue, 17 Aug 2021 11:31:04 -0700 Subject: [PATCH] Fixed crash that could occur if Agent is launched on top of another instance. --- meshcore/agentcore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index 3964735..33169a3 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -4568,6 +4568,7 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char ** } paramLen -= ixr; + if (agentHost->masterDb == NULL) { agentHost->masterDb = ILibSimpleDataStore_CreateCachedOnly(); } if (ILibSimpleDataStore_IsCacheOnly(agentHost->masterDb) == 0) { // Check to see if we need to import a settings file