You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See AdguardTeam/AdGuardHome#5557. Client.DialStamp uses Client.fetchCert, which has bad error handling. certErr is overwritten on every iteration of the loop over r.Answer and is never set at all if there are no answers or if none of the answers are TXT. That results in Client.fetchCert returning nil, nil, which leads to a panic in Client.DialStamp.
Client.fetchCert has a cyclomatic complexity of 14 and a cognitive complexity of 23 and needs refactoring.
The text was updated successfully, but these errors were encountered:
ainar-g
added a commit
to ainar-g/dnscrypt
that referenced
this issue
Mar 15, 2023
See AdguardTeam/AdGuardHome#5557.
Client.DialStamp
usesClient.fetchCert
, which has bad error handling.certErr
is overwritten on every iteration of the loop overr.Answer
and is never set at all if there are no answers or if none of the answers are TXT. That results inClient.fetchCert
returningnil, nil
, which leads to a panic inClient.DialStamp
.Client.fetchCert
has a cyclomatic complexity of 14 and a cognitive complexity of 23 and needs refactoring.The text was updated successfully, but these errors were encountered: