merge: check fingerprints on merge operation! (this needs a testcase!)

This commit is contained in:
Vincent Breitmoser committed 2014-08-14 16:28:03 +02:00
1 parent d2b9e95c80
commit a19784ed7e
2 files changed
+4 -2

No files matched your search

@@ -45,6 +45,7 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Date;
import java.util.Iterator;
@@ -692,7 +693,8 @@ public class UncachedKeyRing {
long masterKeyId = other.getMasterKeyId();
if (getMasterKeyId() != masterKeyId) {
if (getMasterKeyId() != masterKeyId
|| Arrays.equals(getFingerprint(), other.getFingerprint())) {
log.add(LogLevel.ERROR, LogType.MSG_MG_HETEROGENEOUS, indent);
return null;
}