Updated Windows Agents with cert regen on reintall.

Ylian Saint-Hilaire committed Feb 15, 2019 at 15:11 UTC b7df070bd2d0b47678d708aa4b58a529771cc5dc
7 files changed +6 -4
agents/MeshCmd-signed.exe
Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ
agents/MeshCmd64-signed.exe
Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ
agents/MeshService-signed.exe
Binary files a/agents/MeshService-signed.exe and b/agents/MeshService-signed.exe differ
agents/MeshService.exe
Binary files a/agents/MeshService.exe and b/agents/MeshService.exe differ
agents/MeshService64-signed.exe
Binary files a/agents/MeshService64-signed.exe and b/agents/MeshService64-signed.exe differ
agents/MeshService64.exe
Binary files a/agents/MeshService64.exe and b/agents/MeshService64.exe differ
meshcentral.js
+6 -4
@@ -393,10 +393,12 @@ function CreateMeshCentralServer(config, args) {
393 var existingUser = users[newobj._id];
394 if (existingUser) {
395 // Merge the links
396 - for (var j in newobj.links) {
397 - if ((existingUser.links == null) || (existingUser.links[j] == null)) {
398 - if (existingUser.links == null) { existingUser.links = {}; }
399 - existingUser.links[j] = newobj.links[j];
396 + if (typeof newobj.links == 'object') {
397 + for (var j in newobj.links) {
398 + if ((existingUser.links == null) || (existingUser.links[j] == null)) {
399 + if (existingUser.links == null) { existingUser.links = {}; }
400 + existingUser.links[j] = newobj.links[j];
401 + }
402 }
403 }
404 if (existingUser.name == 'admin') { existingUser.links = {}; }