mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Minor security fixes.
This commit is contained in:
parent
66b9e3ddb8
commit
c880007cf2
26 changed files with 1290 additions and 1177 deletions
|
@ -239,6 +239,10 @@ module.exports.CreateSwarmServer = function (parent, db, args, certificates) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
// All other state commands from the legacy agent must be ignored.
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -308,6 +312,10 @@ module.exports.CreateSwarmServer = function (parent, db, args, certificates) {
|
|||
if (xx >= 0) { info.agentosdesc = info.agentosdesc.substring(0, xx); }
|
||||
return info;
|
||||
}
|
||||
default: {
|
||||
// All other commands from the legacy agent must be ignored.
|
||||
break;
|
||||
}
|
||||
}
|
||||
ptr += blen;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue