respect most recent sig with actual key flags, if available
This commit is contained in:
parent
049d665324
commit
d3746b89e5
|
@ -344,6 +344,12 @@ public class UncachedPublicKey {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Previous signature had key flags, but new one doesn't
|
||||||
|
if (!sig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.KEY_FLAGS)
|
||||||
|
&& mostRecentSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.KEY_FLAGS)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Otherwise, note it down as the new "most recent" one
|
// Otherwise, note it down as the new "most recent" one
|
||||||
mostRecentSig = sig;
|
mostRecentSig = sig;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue