fix: Fixes potential crashing issues.

This commit is contained in:
imterah 2024-10-25 12:01:02 -04:00
parent 00a57443d4
commit e062975a0b
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -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