From e062975a0b65fefb03b611f4c2fd23f5c0548a09 Mon Sep 17 00:00:00 2001 From: imterah Date: Fri, 25 Oct 2024 12:01:02 -0400 Subject: [PATCH] fix: Fixes potential crashing issues. --- client/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index 824b6f9..bdb7cf6 100644 --- a/client/client.go +++ b/client/client.go @@ -331,12 +331,11 @@ func (bismuth *BismuthClient) Conn(conn net.Conn) (net.Conn, *BismuthSignResults if err == nil { rootNode.ChildNodes = domainTrustResults + totalServerCount, passedServerCount = computeNodes(rootNode.ChildNodes) } else { fmt.Printf("ERROR: failed to verify servers (%s).\n", err.Error()) signResults.OverallTrustScore = 0 } - - totalServerCount, passedServerCount = computeNodes(rootNode.ChildNodes) } else if isCertSigned { rootNode.IsTrusting = isCertSigned