X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Futil.cc;h=90d78b32e42dbf30edcf321fba6adf83e97b2b54;hb=6ebae1c7fd0f1449f95719c69c871cb87f8832bf;hp=0a060e96084ccf55cd9e913cbf88adc5d6c5afac;hpb=e64a1a9aae0200d14feed49a4c6cf537bf5708a4;p=dcpomatic.git diff --git a/src/lib/util.cc b/src/lib/util.cc index 0a060e960..90d78b32e 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1247,7 +1247,7 @@ decrypt_kdm_with_helpful_error (dcp::EncryptedKDM kdm) } if (!on_chain) { throw KDMError (_("This KDM was not made for DCP-o-matic's decryption certificate."), e.what()); - } else if (on_chain && kdm_subject_name != dc->leaf().subject()) { + } else if (kdm_subject_name != dc->leaf().subject()) { throw KDMError (_("This KDM was made for DCP-o-matic but not for its leaf certificate."), e.what()); } else { throw;