diff options
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/tpk/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/tpk/mod.rs b/openpgp/src/tpk/mod.rs index 843401d5..e02afd67 100644 --- a/openpgp/src/tpk/mod.rs +++ b/openpgp/src/tpk/mod.rs @@ -2203,7 +2203,7 @@ impl TPK { /// If `other` is a different key, then nothing is merged into /// `self`, but `self` is still canonicalized. pub fn merge(mut self, mut other: TPK) -> Result<Self> { - if self.primary != other.primary { + if self.primary.fingerprint() != other.primary.fingerprint() { // The primary key is not the same. There is nothing to // do. return Err(Error::InvalidArgument( |