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 {
|
if err == nil {
|
||||||
rootNode.ChildNodes = domainTrustResults
|
rootNode.ChildNodes = domainTrustResults
|
||||||
|
totalServerCount, passedServerCount = computeNodes(rootNode.ChildNodes)
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("ERROR: failed to verify servers (%s).\n", err.Error())
|
fmt.Printf("ERROR: failed to verify servers (%s).\n", err.Error())
|
||||||
signResults.OverallTrustScore = 0
|
signResults.OverallTrustScore = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
totalServerCount, passedServerCount = computeNodes(rootNode.ChildNodes)
|
|
||||||
} else if isCertSigned {
|
} else if isCertSigned {
|
||||||
rootNode.IsTrusting = isCertSigned
|
rootNode.IsTrusting = isCertSigned
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue