1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 04:17:59 +01:00

q cleanup targetUa check

This commit is contained in:
Heiko Schaefer 2023-07-10 23:44:15 +02:00
parent 20434ad9f6
commit 8dd5a65699
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -305,12 +305,10 @@ class Query(
// User ID to authenticate the User ID. But if the target has
// revoked it, then it can't be authenticated.
val targetUa: RevocationState? = target.userIds[targetUserid]
targetUa?.let {
if (it.isEffective(network.referenceTime())) {
if (targetUa != null && targetUa.isEffective(network.referenceTime())) {
logger.debug("{}: Target user id is revoked at reference time.", targetFpr)
return hashMapOf()
}
}
// Dijkstra.
val bestNextNode: HashMap<Fingerprint, ForwardPointer> = HashMap()