Updated to clear errors captured by gosec.

This commit is contained in:
James Wells 2021-11-09 17:06:16 -08:00
parent 27045c94d6
commit 749bd6557e
Signed by: jwells
GPG key ID: 73196D10B8E65666
6 changed files with 49 additions and 30 deletions

View file

@ -86,10 +86,10 @@ func sendAgent(wg *sync.WaitGroup, uuid string, connectString string, agent gstr
sock, _ := zmq.NewSocket(zmq.REQ)
defer sock.Close()
sock.SetIdentity(uuid)
err := sock.SetIdentity(uuid)
log.Printf("[DEBUG] Attempting to connect to %s\n", connectString)
err := sock.Connect(connectString)
err = sock.Connect(connectString)
if err != nil {
log.Printf("[ERROR] Failed to connect to %s\n", connectString)
os.Exit(10)