fix: Fixes potential crashing issues.
This commit is contained in:
parent
00a57443d4
commit
e062975a0b
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue