[agentlessd] fix compiler warnings
[agentlessd] fix CID 28420
[agentlessd] fix CID 28490
Merge pull request #374 from cgzones/agentlessd

agentlessd