We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d0c1c commit 64fe26fCopy full SHA for 64fe26f
1 file changed
src/jrd/CryptoManager.cpp
@@ -365,7 +365,9 @@ namespace Jrd {
365
crypt = hdr->hdr_flags & Ods::hdr_encrypted;
366
process = hdr->hdr_flags & Ods::hdr_crypt_process;
367
368
- if ((crypt || process) && !cryptPlugin)
+ // tdbb w/o attachment comes when database is shutting down in the end of detachDatabase()
369
+ // the only needed here page is header, i.e. we can live w/o cryptPlugin
370
+ if ((crypt || process) && (!cryptPlugin) && tdbb->getAttachment())
371
{
372
ClumpletWriter hc(ClumpletWriter::UnTagged, hdr->hdr_page_size);
373
hdr.getClumplets(hc);
@@ -388,7 +390,7 @@ namespace Jrd {
388
390
hash = valid;
389
391
}
392
- if (flags & CRYPT_HDR_INIT)
393
+ if (cryptPlugin && (flags & CRYPT_HDR_INIT))
394
checkDigitalSignature(tdbb, hdr);
395
396
0 commit comments